Anterior-IaC/firmware/deployment.yaml
2025-02-23 15:24:32 -06:00

55 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: firmware
namespace: firmware
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
resources:
limits:
memory: "50Mi"
cpu: "50m"
requests:
memory: "5Mi"
cpu: "10m"
volumeMounts:
- mountPath: /usr/share/nginx/html
name: data-volume
readOnly: true
- mountPath: /etc/nginx/nginx.conf
name: nginx-conf
subPath: nginx.conf
readOnly: true
- mountPath: /etc/nginx/conf.d/default.conf
name: default-conf
subPath: default.conf
readOnly: true
ports:
- containerPort: 80
volumes:
- name: data-volume
persistentVolumeClaim:
claimName: firmware-csi-s3-pvc
- name: nginx-conf
configMap:
name: nginx-config
items:
- key: nginx.conf
path: nginx.conf
- name: default-conf
configMap:
name: nginx-config
items:
- key: default.conf
path: default.conf