挂载pvc

This commit is contained in:
celebrateyang 2024-10-14 12:09:55 +08:00
parent fa268392ab
commit 3bb8f9bc69

View File

@ -39,6 +39,9 @@ spec:
- name: http - name: http
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.service.port }}
protocol: TCP protocol: TCP
volumeMounts:
- mountPath: /app/src/
name: cookies-volume
env: env:
- name: API_URL - name: API_URL
value: https://api.freesavevideo.online/ value: https://api.freesavevideo.online/
@ -50,6 +53,10 @@ spec:
value: 0x4AAAAAAAw8jRb9G7cWXnbd value: 0x4AAAAAAAw8jRb9G7cWXnbd
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: cookies-volume
persistentVolumeClaim:
claimName: {{ .Release.Name }}-pvc
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}