feat: Add security context
All checks were successful
Build and deploy / build (push) Successful in 11m49s
All checks were successful
Build and deploy / build (push) Successful in 11m49s
This commit is contained in:
@@ -18,12 +18,17 @@ spec:
|
|||||||
kubectl.kubernetes.io/default-container: lldap-controller
|
kubectl.kubernetes.io/default-container: lldap-controller
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: lldap-controller
|
serviceAccountName: lldap-controller
|
||||||
securityContext: {}
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
fsGroup: 1000
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
containers:
|
containers:
|
||||||
- name: lldap-controller
|
- name: lldap-controller
|
||||||
image: '{{ index .images "lldap-controller" }}'
|
image: '{{ index .images "lldap-controller" }}'
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext: {}
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
@@ -46,6 +51,12 @@ spec:
|
|||||||
value: /secrets/credentials/admin-pass
|
value: /secrets/credentials/admin-pass
|
||||||
- name: LLDAP_BIND_DN
|
- name: LLDAP_BIND_DN
|
||||||
value: uid={username},ou=people,dc=huizinga,dc=dev
|
value: uid={username},ou=people,dc=huizinga,dc=dev
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
runAsNonRoot: true
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
volumes:
|
volumes:
|
||||||
- name: credentials
|
- name: credentials
|
||||||
secret:
|
secret:
|
||||||
|
|||||||
Reference in New Issue
Block a user