forked from scmlearningcentre/fispune
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrs.yml
More file actions
21 lines (20 loc) · 1.11 KB
/
rs.yml
File metadata and controls
21 lines (20 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
kind: ReplicaSet # Defines the object to be ReplicaSet
apiVersion: apps/v1 # Replicaset is not available on v1
metadata:
name: myreplicaset
spec:
replicas: 2 # this element defines the desired number of pods
selector: # tells the controller which pods to watch/belong to this Replication Set
matchExpressions: # these must match the labels
- {key: myname, operator: In, values: [adam, adamm, aadam]}
- {key: env, operator: NotIn, values: [production]}
template: # template element defines a template to launch a new pod
metadata:
name: testpod7
labels: # selector values need to match the labels values specified in the pod template
myname: adam
spec:
containers:
- name: c00
image: ubuntu
command: ["/bin/bash", "-c", "while true; do echo Hello-Adam; sleep 5 ; done"]