Skip to content
Open
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
9 changes: 9 additions & 0 deletions config/00-init/03-db-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
protocol: TCP
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsUser: 65532
capabilities:
drop:
Expand All @@ -74,6 +75,10 @@ spec:
volumeMounts:
- name: tekton-hub-db
mountPath: /var/lib/postgresql/data
- name: pg-run
mountPath: /var/run/postgresql
- name: pg-tmp
mountPath: /tmp
readinessProbe:
exec:
command: [bash, -c, "psql -w -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c 'SELECT 1'"]
Expand All @@ -90,4 +95,8 @@ spec:
- name: tekton-hub-db
persistentVolumeClaim:
claimName: tekton-hub-db
- name: pg-run
emptyDir: {}
- name: pg-tmp
emptyDir: {}
restartPolicy: Always
Loading