diff --git a/chart/templates/deployment-django.yaml b/chart/templates/deployment-django.yaml index 81302a8b9d8ed3a66fc64168ca6242fc823fdc8f..6de09bc9b49add71d399bb0c3abfcfafd60a52dd 100644 --- a/chart/templates/deployment-django.yaml +++ b/chart/templates/deployment-django.yaml @@ -112,9 +112,9 @@ spec: limits: memory: "128Mi" cpu: "100m" - # volumeMounts: - # - name: server-static - # mountPath: /usr/src/app/static + volumeMounts: + - name: server-static + mountPath: /usr/src/app/static {{- with .Values.nodeSelector }} nodeSelector: @@ -140,4 +140,6 @@ spec: - name: backend-secret secret: secretName: backend-secret - + - name: server-static + persistentVolumeClaim: + claimName: {{ printf "server-static-%s" .Release.Name}}