74 lines
1.2 KiB
YAML
74 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: two-replicas
|
|
namespace: test
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: two-replicas
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: two-replicas
|
|
spec:
|
|
containers:
|
|
- name: app
|
|
image: example.com/app:v1
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: stopped
|
|
namespace: test
|
|
spec:
|
|
replicas: 0
|
|
selector:
|
|
matchLabels:
|
|
app: stopped
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: stopped
|
|
spec:
|
|
containers:
|
|
- name: app
|
|
image: example.com/app:v1
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: one-replica
|
|
namespace: test
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: one-replica
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: one-replica
|
|
spec:
|
|
containers:
|
|
- name: app
|
|
image: example.com/app:v1
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: default-replicas
|
|
namespace: test
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: default-replicas
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: default-replicas
|
|
spec:
|
|
containers:
|
|
- name: app
|
|
image: example.com/app:v1
|