Add security context to faas-netes container inside the gateway pod. Fix issue
@@ -141,6 +141,11 @@ spec:
cpu: "50m"
image: {{ .Values.faasnetes.image }}
imagePullPolicy: {{ .Values.openFaasImagePullPolicy }}
+ {{- if .Values.securityContext }}
+ securityContext:
+ readOnlyRootFilesystem: true
+ runAsUser: 10001
+ {{- end }}
env:
- name: port
value: "8081"
