testing persistent volume (PV): pvc and deployment yaml
This commit is contained in:
@@ -42,6 +42,9 @@ spec:
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.service.port }}
|
||||
volumeMounts:
|
||||
- name: shared-data
|
||||
mountPath: {{ .Values.sharedDataFolder.path }}
|
||||
env:
|
||||
{{- range $key := .Values.env }}
|
||||
{{- if .value }}
|
||||
@@ -64,6 +67,10 @@ spec:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 12 }}
|
||||
volumes:
|
||||
- name: shared-data
|
||||
persistentVolumeClaim:
|
||||
claimName: shared-data
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | indent 8 }}
|
||||
|
||||
Reference in New Issue
Block a user