hosting-frontend/deploy/k8s/deployment.yaml
Alexis Bruneteau ae2b3b106a waouh
2025-05-31 02:43:51 +02:00

33 lines
734 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: hosting-frontend
namespace: hosting
spec:
replicas: 2
selector:
matchLabels:
app: hosting-frontend
template:
metadata:
labels:
app: hosting-frontend
spec:
containers:
- name: hosting-frontend
image: nginx:alpine
ports:
- containerPort: 80
volumeMounts:
- name: app-volume
mountPath: /usr/share/nginx/html
- name: nginx-config
mountPath: /etc/nginx/conf.d
volumes:
- name: app-volume
configMap:
name: hosting-files
- name: nginx-config
configMap:
name: nginx-config