code-examples/2024/12/chart_demo1/templates/deployment.yaml

26 lines
444 B
YAML
Raw Normal View History

2024-12-16 23:10:49 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: chart-demo1-depl
labels:
app: chart-demo1
type: frontend
spec:
replicas: {{ .Values.Replicas }}
selector:
matchLabels:
app: chart-demo1
type: frontend
template:
metadata:
labels:
app: chart-demo1
type: frontend
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80