Merge "[memcached] Allign with security best practices"

This commit is contained in:
Zuul 2025-01-07 11:47:39 +00:00 committed by Gerrit Code Review
commit b2e6f27af4
2 changed files with 9 additions and 1 deletions
memcached

@ -132,6 +132,6 @@ spec:
- name: memcached-bin
configMap:
name: {{ $configMapBinName | quote }}
defaultMode: 0555
defaultMode: 360
{{ dict "envAll" $envAll "component" "memcached" "requireSys" true | include "helm-toolkit.snippets.kubernetes_apparmor_volumes" | indent 8 }}
{{- end }}

@ -150,13 +150,21 @@ pod:
server:
pod:
runAsUser: 65534
runAsNonRoot: true
fsGroup: 65534
container:
memcached:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
memcached_exporter:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
probes:
memcached:
memcached: