Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions k8s/dev/db-migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Job
metadata:
name: auth-db-migration
annotations:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
argocd.argoproj.io/sync-wave: "-1"
spec:
backoffLimit: 1
Expand Down
6 changes: 6 additions & 0 deletions k8s/platform-dev/keycloak-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
labels:
app: keycloak
spec:
automountServiceAccountToken: false
securityContext:
runAsNonRoot: true
seccompProfile:
Expand Down Expand Up @@ -88,6 +89,11 @@ spec:
limits:
cpu: 1000m
memory: 1536Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumes:
- name: keycloak-realm-import
configMap:
Expand Down
6 changes: 3 additions & 3 deletions k8s/platform-dev/postgres-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ spec:
app: postgres
spec:
securityContext:
runAsNonRoot: true
runAsUser: 999
runAsGroup: 999
fsGroup: 999
seccompProfile:
type: RuntimeDefault
Expand All @@ -34,6 +31,9 @@ spec:
runAsUser: 0
runAsGroup: 0
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data
Expand Down