Skip to content

Commit

Permalink
feat: adding nginx mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Aug 7, 2024
1 parent bd3c5a4 commit 12ac4e9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
14 changes: 13 additions & 1 deletion charts/example-ui/templates/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,16 @@ spec:
memory: 50Mi
ports:
- name: http
containerPort: {{ .Values.port }}
containerPort: {{ .Values.port }}
volumeMounts:
- name: tmp-volume
mountPath: /var/cache/nginx
readOnly: false
- name: run-volume
mountPath: /var/run
readOnly: false
volumes:
- name: tmp-volume
emptyDir: {}
- name: run-volume
emptyDir: {}
24 changes: 24 additions & 0 deletions charts/example-ui/tests/__snapshot__/deploy_test.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,23 @@ matches the snapshot:
memory: 50Mi
securityContext:
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /var/cache/nginx
name: tmp-volume
readOnly: false
- mountPath: /var/run
name: run-volume
readOnly: false
securityContext:
fsGroup: 2000
runAsGroup: 3000
runAsUser: 1000
serviceAccountName: RELEASE-NAME
volumes:
- emptyDir: {}
name: tmp-volume
- emptyDir: {}
name: run-volume
matches the snapshot with FRONTEND_PORT:
1: |
apiVersion: apps/v1
Expand Down Expand Up @@ -87,8 +99,20 @@ matches the snapshot with FRONTEND_PORT:
memory: 50Mi
securityContext:
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /var/cache/nginx
name: tmp-volume
readOnly: false
- mountPath: /var/run
name: run-volume
readOnly: false
securityContext:
fsGroup: 2000
runAsGroup: 3000
runAsUser: 1000
serviceAccountName: RELEASE-NAME
volumes:
- emptyDir: {}
name: tmp-volume
- emptyDir: {}
name: run-volume

0 comments on commit 12ac4e9

Please sign in to comment.