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:
|
labels:
|
||||||
{{ tuple $envAll "memcached" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
{{ tuple $envAll "memcached" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
{{ dict "envAll" $envAll "application" "server" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||||
readOnlyRootFilesystem: true
|
|
||||||
shareProcessNamespace: true
|
shareProcessNamespace: true
|
||||||
serviceAccountName: {{ $rcControllerName | quote }}
|
serviceAccountName: {{ $rcControllerName | quote }}
|
||||||
affinity:
|
affinity:
|
||||||
|
@ -147,6 +147,11 @@ pod:
|
|||||||
user:
|
user:
|
||||||
memcached_exporter:
|
memcached_exporter:
|
||||||
uid: 65534
|
uid: 65534
|
||||||
|
server:
|
||||||
|
uid: 65534
|
||||||
|
securityContext:
|
||||||
|
server:
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
affinity:
|
affinity:
|
||||||
anti:
|
anti:
|
||||||
topologyKey:
|
topologyKey:
|
||||||
|
Loading…
Reference in New Issue
Block a user