Files
gitops/apps/hello/20-deployment.yaml
2026-08-26 13:38:57 +00:00

26 lines
604 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: hello
namespace: hello
spec:
replicas: 3
selector:
matchLabels: { app: hello }
template:
metadata:
labels: { app: hello }
spec:
containers:
- name: web
image: nginx:alpine
ports: [{ containerPort: 80 }]
volumeMounts:
- { name: page, mountPath: /usr/share/nginx/html }
resources:
requests: { cpu: 10m, memory: 16Mi }
limits: { cpu: 200m, memory: 128Mi }
volumes:
- name: page
configMap: { name: hello-page }