How to create Deployment using YAML Script
apiVersion: apps/v1
kind: Deployment
metadata:
name: kkdeployment
spec:
replicas:3
selector:
matchLabels:
app: kkapp1
template:
metadata:
labels:
app: kkapp1
spec:
containers:
- name: kkcon1
image: location and name
ports:
- containerPort: 80
kind: Deployment
metadata:
name: kkdeployment
spec:
replicas:3
selector:
matchLabels:
app: kkapp1
template:
metadata:
labels:
app: kkapp1
spec:
containers:
- name: kkcon1
image: location and name
ports:
- containerPort: 80
Comments
Post a Comment