deploy: fix static deployment and static container
This commit is contained in:
parent
4cf6c36f34
commit
b5c711854b
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -42,7 +42,7 @@ spec:
|
|||
resources:
|
||||
requests:
|
||||
cpu: 150m
|
||||
memory: 400M
|
||||
memory: 300M
|
||||
limits:
|
||||
cpu: 300m
|
||||
memory: 600M
|
||||
memory: 500M
|
||||
|
|
Reference in New Issue