|
|
|
|
@ -40,6 +40,13 @@ spec:
|
|
|
|
|
port: 8888
|
|
|
|
|
initialDelaySeconds: 3
|
|
|
|
|
periodSeconds: 3
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: "/usr/share/nginx/html/django_media"
|
|
|
|
|
name: django-nginx-data
|
|
|
|
|
volumes:
|
|
|
|
|
- name: django-nginx-data
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: django-nginx-pvc
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
@ -71,3 +78,10 @@ spec:
|
|
|
|
|
number: 80
|
|
|
|
|
path: /django_static/
|
|
|
|
|
pathType: ImplementationSpecific
|
|
|
|
|
- backend:
|
|
|
|
|
service:
|
|
|
|
|
name: django-static
|
|
|
|
|
port:
|
|
|
|
|
number: 80
|
|
|
|
|
path: /django_media/
|
|
|
|
|
pathType: ImplementationSpecific
|
|
|
|
|
|