k8s-samples/CKA_Course/deployment.yaml

20 lines
329 B
YAML
Raw Permalink Normal View History

2022-08-17 02:59:58 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 3
selector:
matchLabels:
app: my-deployment
template:
metadata:
labels:
app: my-deployment
spec:
containers:
- name: nginx
image: nginx:1.19.1
ports:
- containerPort: 80