--- apiVersion: apps/v1 kind: Deployment metadata: name: django-static namespace: spatial labels: app.kubernetes.io/name: django-static spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: django-static template: metadata: labels: app.kubernetes.io/name: django-static spec: containers: - name: django image: DEPLOY_IMAGE_TAG ports: - containerPort: 80 resources: requests: memory: "64Mi" cpu: "50m" limits: memory: "64Mi" cpu: "50m" readinessProbe: httpGet: path: /nginx-health port: 8888 initialDelaySeconds: 3 periodSeconds: 3 livenessProbe: httpGet: path: /nginx-health port: 8888 initialDelaySeconds: 3 periodSeconds: 3 --- apiVersion: v1 kind: Service metadata: name: django-static spec: selector: app.kubernetes.io/name: django-static ports: - protocol: TCP port: 80 targetPort: 80 --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: django-static namespace: spatial spec: ingressClassName: nginx-internal rules: - host: ADDRESS_INGRESS_HOST http: paths: - backend: service: name: django-static port: number: 80 path: /django_static/ pathType: ImplementationSpecific