Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/personal-ovpn/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "2.4"
description: Roll your own OpenVPN server
name: personal-ovpn
version: 0.2.2
version: 0.2.3
type: application
source:
- https://github.com/suda/charts/tree/main/charts/personal-ovpn
Expand Down
7 changes: 7 additions & 0 deletions charts/personal-ovpn/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ spec:
capabilities:
add:
- NET_ADMIN
privileged: {{ .Values.security.privileged }}
lifecycle:
postStart:
exec:
command:
- "sysctl"
- "net.ipv4.ip_forward={{ .Values.security.ipForward }}"
volumeMounts:
{{- if .Values.automatic.enabled }}
- name: data
Expand Down
3 changes: 3 additions & 0 deletions charts/personal-ovpn/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
- port: {{ .Values.service.port }}
targetPort: openvpn
protocol: {{ .Values.service.protocol }}
{{- if .Values.service.nodePort }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
name: openvpn
selector:
app.kubernetes.io/name: {{ include "personal-ovpn.name" . }}
Expand Down
7 changes: 7 additions & 0 deletions charts/personal-ovpn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ service:
port: 31304
# service.type -- Service type
type: NodePort
# service.nodePort -- port binding for the node
port: 31304


# securityContext -- security context for pod
security:
privileged: false
ipForward: 0
# limitTraficToNamespace -- limit network traffic just to OpenVPN namespace
limitTraficToNamespace: true
# limitedCidr -- CIDR to be blocked out
Expand Down