diff --git a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml index 212da7db17fa17a4e464c4720237f393e7fb63a9..b4022a953cd919851c604a4ca5880ef98e1feca0 100644 --- a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml @@ -14,6 +14,10 @@ spec: labels: {{- include "snmpexporter.selectorLabels" . | nindent 8 }} spec: + securityContext: + runAsUser: 1000 + runAsGroup: 3000 + fsGroup: 2000 initContainers: - name: cleanup image: "ubuntu:18.04" diff --git a/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml b/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml index 7e75594b7f08b93868d83eb0f6541193e82ca172..ab06db44e6afa6fa4b8bb814dfdc476e32207be9 100755 --- a/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/templates/statefulset.yaml @@ -21,7 +21,9 @@ spec: - name: regcred serviceAccountName: {{ template "eechart.serviceAccountName" . }} securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} + runAsUser: 1000 + runAsGroup: 3000 + fsGroup: 2000 containers: - name: {{ .Chart.Name }} securityContext: