浏览代码

add capabilities

Stavros kois 2 年之前
父节点
当前提交
c5b8877837
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      test/wg-easy/1.0.0/templates/deployment.yaml

+ 10 - 0
test/wg-easy/1.0.0/templates/deployment.yaml

@@ -31,6 +31,16 @@ spec:
         - name: {{ .Chart.Name }}
           {{ include "common.resources.limitation" . | nindent 10 }}
           {{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
+          securityContext:
+            capabilities:
+              add:
+                - NET_ADMIN
+                - SYS_MODULE
+            {{/* https://github.com/WeeJeWel/wg-easy/pull/394 */}}
+            runAsUser: 0
+            runAsGroup: 0
+            readOnlyRootFilesystem: false
+            runAsNonRoot: false
           volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
           {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
             - name: extrappvolume-{{ $index }}