apiVersion: apps/v1
kind: ReplicaSetDeployment
metadata:
name: nginx-rsdeploy
labels:
app: myapp-rsdeploy
type: front-end
spec:
template:
metadata:
name: nginx
labels:
app: myapp
type: front-end
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
selector:
matchLabels:
type: front-end
replicas: 3
|