34 lines
899 B
YAML
34 lines
899 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frontend
|
|
namespace: {{ .Values.namespace }}
|
|
spec:
|
|
replicas: {{ .Values.frontend.replicas }}
|
|
selector:
|
|
matchLabels:
|
|
app: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: {{ .Values.frontend.image }}:{{ .Values.frontend.tag }}
|
|
resources:
|
|
requests:
|
|
memory: {{ .Values.frontend.resources.requests.memory }}
|
|
limits:
|
|
memory: {{ .Values.frontend.resources.limits.memory }}
|
|
ports:
|
|
- containerPort: {{ .Values.frontend.port }}
|
|
volumeMounts:
|
|
- name: nginx-config
|
|
mountPath: /etc/nginx/nginx.conf
|
|
subPath: nginx.conf
|
|
volumes:
|
|
- name: nginx-config
|
|
configMap:
|
|
name: nginx-config
|