Skip to content

Commit

Permalink
feat: tidy up opensearch-backup job and script
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmooreio committed Nov 18, 2024
1 parent 031a908 commit 4bee540
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions jobs/opensearch-backup/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ spec:
template:
spec:
serviceAccountName: "{{ $.Values.opensearch.serviceAccountPrefix }}-{{ $.Values.opensearch.environment }}"
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 999
containers:
- name: opensearch-backup
image: ghcr.io/ministryofjustice/hmpps-delius-alfresco-utils:latest
Expand Down Expand Up @@ -48,9 +42,20 @@ spec:
volumeMounts:
- name: script
mountPath: /scripts
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 999
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
volumes:
- name: script
configMap:
name: opensearch-backup-script
defaultMode: 0755
restartPolicy: Never
restartPolicy: Never

0 comments on commit 4bee540

Please sign in to comment.