Implement Security Context for Memcached
Implement a pod security context for the following Memcached resources: - Memcached server deployment Change-Id: I8628ceb246e7c435a2ddd20bf1bcecd94db8ea26
This commit is contained in:
parent
8fb2c7f07c
commit
8bbe8452c2
@ -43,8 +43,7 @@ spec:
|
||||
labels:
|
||||
{{ tuple $envAll "memcached" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||
spec:
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: true
|
||||
{{ dict "envAll" $envAll "application" "server" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||
shareProcessNamespace: true
|
||||
serviceAccountName: {{ $rcControllerName | quote }}
|
||||
affinity:
|
||||
|
@ -147,6 +147,11 @@ pod:
|
||||
user:
|
||||
memcached_exporter:
|
||||
uid: 65534
|
||||
server:
|
||||
uid: 65534
|
||||
securityContext:
|
||||
server:
|
||||
readOnlyRootFilesystem: true
|
||||
affinity:
|
||||
anti:
|
||||
topologyKey:
|
||||
|
Loading…
Reference in New Issue
Block a user