Vadim Surkov 2 years ago
parent
commit
fb0a319a67
3 changed files with 8 additions and 1 deletions
  1. 0 0
      helm/123/cm-router.yaml
  2. 0 0
      helm/123/daemonset.yaml
  3. 8 1
      helm/templates/deployment.yaml

+ 0 - 0
helm/templates/cm-router.yaml → helm/123/cm-router.yaml


+ 0 - 0
helm/templates/daemonset.yaml → helm/123/daemonset.yaml


+ 8 - 1
helm/templates/deployment.yaml

@@ -18,11 +18,15 @@ spec:
       labels:
         {{- include "openvpn.selectorLabels" . | nindent 8 }}
     spec:
+      securityContext:
+        sysctls:
+        - name: net.ipv4.ip_forward
+          value: "1"
       {{- if .Values.registry_secret_data }}
       imagePullSecrets:
       - name: {{ include "openvpn.fullname" . }}-registry-secret
       {{- end }}
-      hostNetwork: true
+#      hostNetwork: true
       {{- if .Values.openvpn.scripts.initscript }}
       initContainers:
         - name: {{ .Chart.Name }}-init
@@ -36,6 +40,7 @@ spec:
             capabilities:
               add:
                 - NET_ADMIN
+                - MKNOD
       {{- end }}
       containers:
         - name: {{ .Chart.Name }}
@@ -55,6 +60,7 @@ spec:
             capabilities:
               add:
                 - NET_ADMIN
+                - MKNOD
           image: "{{ .Values.openvpn.image }}:{{ .Values.openvpn.tag | default "latest" }}"
           imagePullPolicy: {{ .Values.openvpn.pullPolicy }}
           env:
@@ -89,6 +95,7 @@ spec:
             capabilities:
               add:
                 - NET_ADMIN
+                - MKNOD
         {{- end }}
       volumes:
       - name: keys