Skip to content

Commit

Permalink
Ugh put the security context back
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Aug 11, 2024
1 parent b6c7980 commit 462db19
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
7 changes: 7 additions & 0 deletions infra/helm/meshdb/charts/celery/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "celery.fullname" . }}
namespace: meshdb
labels:
{{- include "celery.labels" . | nindent 4 }}
spec:
Expand All @@ -27,11 +28,17 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
{{- range .Values.containers }}
- name: {{ .name }}
securityContext:
{{- toYaml $.Values.securityContext | nindent 12 }}
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default $.Chart.AppVersion }}"
imagePullPolicy: {{ $.Values.image.pullPolicy }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
entrypoint: {{ .entrypoint }}
envFrom:
- configMapRef:
Expand Down
13 changes: 12 additions & 1 deletion infra/helm/meshdb/charts/celery/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,21 @@ serviceAccount:
podAnnotations: {}
podLabels: {}

podSecurityContext:
seccompProfile:
type: RuntimeDefault
securityContext: {}

ingress:
enabled: false

resources: {}
resources:
limits:
cpu: 100m
memory: 128Mi
#requests:
# cpu: 100m
# memory: 128Mi

containers:
- name: celery-beat
Expand Down

0 comments on commit 462db19

Please sign in to comment.