Skip to content

Commit

Permalink
Fixes for deployment as current matverseny-frontend can't run non-roo…
Browse files Browse the repository at this point in the history
…t readonly rootfs
  • Loading branch information
TwoDCube committed Nov 4, 2024
1 parent f708293 commit 0ef7338
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/matverseny-frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.5
version: 0.1.6

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
7 changes: 7 additions & 0 deletions charts/matverseny-frontend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ spec:
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
# TODO: remove this when https://github.com/Verseghy/matverseny-frontend/issues/15 is resolved
volumeMounts:
- mountPath: /var/cache/nginx/client_temp
name: tmp
volumes:
- name: tmp
emptyDir: {}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
7 changes: 4 additions & 3 deletions charts/matverseny-frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
# TODO: change this when https://github.com/Verseghy/matverseny-frontend/issues/15 is resolved
readOnlyRootFilesystem: false # true
runAsNonRoot: false # true
# runAsUser: 1000

# This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
service:
Expand Down

0 comments on commit 0ef7338

Please sign in to comment.