45 lines
1022 B
YAML
45 lines
1022 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frontend
|
|
namespace: django
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
volumes:
|
|
- name: nginx-configmap
|
|
configMap:
|
|
name: nginx-configmap
|
|
items:
|
|
- key: nginx.conf
|
|
path: nginx.conf
|
|
defaultMode: 420
|
|
containers:
|
|
- name: frontend
|
|
image: cr.yandex/crp3ccidau046kdj8g9q/sarex-frontend-dev:contour_0b579274
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
resources:
|
|
requests:
|
|
cpu: 25m
|
|
memory: 100Mi
|
|
volumeMounts:
|
|
- name: nginx-configmap
|
|
mountPath: /etc/nginx/nginx.conf
|
|
subPath: nginx.conf
|
|
imagePullSecrets:
|
|
- name: regcred
|