Add pod/contianer security context template to create_db.yaml
This enables the runAsUser and ReadOnly-fs flags overridden in values.yaml Change-Id: I2e5cbd57f90ef1f5c09b7a54cd04d92dcfd8edc5
This commit is contained in:
parent
a7cfefddb5
commit
b4d0793b98
@ -15,7 +15,7 @@ apiVersion: v1
|
|||||||
appVersion: v8.0.2
|
appVersion: v8.0.2
|
||||||
description: OpenStack-Helm Alerta for Alertmanager.
|
description: OpenStack-Helm Alerta for Alertmanager.
|
||||||
name: alerta
|
name: alerta
|
||||||
version: 0.1.4
|
version: 0.1.5
|
||||||
home: https://github.com/alerta/alerta
|
home: https://github.com/alerta/alerta
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/alerta/alerta
|
- https://github.com/alerta/alerta
|
||||||
|
@ -22,10 +22,12 @@ kind: Pod
|
|||||||
metadata:
|
metadata:
|
||||||
name: alerta-create-db
|
name: alerta-create-db
|
||||||
spec:
|
spec:
|
||||||
|
{{ dict "envAll" $envAll "application" "alerta_create_db" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 2 }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
containers:
|
containers:
|
||||||
- name: alerta-create-db
|
- name: alerta-create-db
|
||||||
{{ tuple $envAll "alerta_create_db" | include "helm-toolkit.snippets.image" | indent 4 }}
|
{{ tuple $envAll "alerta_create_db" | include "helm-toolkit.snippets.image" | indent 4 }}
|
||||||
|
{{ dict "envAll" $envAll "application" "alerta_create_db" "container" "alerta_create_db" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 4 }}
|
||||||
env:
|
env:
|
||||||
- name: DB_FQDN
|
- name: DB_FQDN
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -69,7 +69,7 @@ pod:
|
|||||||
pod:
|
pod:
|
||||||
runAsUser: 65534
|
runAsUser: 65534
|
||||||
container:
|
container:
|
||||||
postgresql_create_db:
|
alerta_create_db:
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
server:
|
server:
|
||||||
|
Loading…
Reference in New Issue
Block a user