deploy: fix static deployment and static container

This commit is contained in:
Langhammer, Jens 2019-07-22 17:17:53 +02:00
parent 4cf6c36f34
commit b5c711854b
4 changed files with 7 additions and 8 deletions

View file

@ -10,5 +10,5 @@ RUN ./manage.py collectstatic --no-input
FROM nginx:latest
COPY --from=static-build /app/static /static/_/static/
COPY --from=static-build /app/static /static/static/
COPY ./passbook/core/nginx.conf /etc/nginx/nginx.conf

View file

@ -35,7 +35,7 @@ spec:
servicePort: http
- path: /static/
backend:
serviceName: {{ $fullname }}-static
serviceName: {{ $fullName }}-static
servicePort: http
{{- end }}
{{- range .Values.ingress.app_gw_hosts }}

View file

@ -24,9 +24,6 @@ spec:
field.cattle.io/workloadMetrics: '[{"path":"/metrics","port":9113,"schema":"HTTP"}]'
spec:
containers:
- name: {{ .Chart.Name }}-static-prometheus
image: nginx/nginx-prometheus-exporter:0.4.1
imagePullPolicy: IfNotPresent
- name: {{ .Chart.Name }}-static
image: "docker.beryju.org/passbook/static:{{ .Values.image.tag }}"
imagePullPolicy: IfNotPresent
@ -53,4 +50,6 @@ spec:
limits:
cpu: 20m
memory: 20M
- name: {{ .Chart.Name }}-static-prometheus
image: nginx/nginx-prometheus-exporter:0.4.1
imagePullPolicy: IfNotPresent

View file

@ -42,7 +42,7 @@ spec:
resources:
requests:
cpu: 150m
memory: 400M
memory: 300M
limits:
cpu: 300m
memory: 600M
memory: 500M