Skip to content
Open
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
6 changes: 3 additions & 3 deletions templates/flask.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: flask
spec:
{{- with .Values.flask.securityContext }}
securityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: flask-app
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
4 changes: 4 additions & 0 deletions templates/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: postgres
spec:
{{- with .Values.postgres.securityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: postgres
image: "{{ .Values.postgres.image }}"
Expand Down
4 changes: 4 additions & 0 deletions templates/redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: redis
spec:
{{- with .Values.redis.securityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: redis
image: "{{ .Values.redis.image }}"
Expand Down
6 changes: 3 additions & 3 deletions templates/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: worker
spec:
{{- with .Values.worker.securityContext }}
securityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: rq-worker
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
8 changes: 8 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,20 @@ image:

flask:
replicaCount: 1
securityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0
service:
type: LoadBalancer
port: 8000

worker:
replicaCount: 3
securityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0

redis:
enabled: true
Expand Down