forked from scmlearningcentre/fispune
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrc.yml
More file actions
18 lines (18 loc) · 833 Bytes
/
rc.yml
File metadata and controls
18 lines (18 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
kind: ReplicationController # this defines to create the object of replication type
apiVersion: v1
metadata:
name: replicationcontroller
spec:
replicas: 2 # this element defines the desired number of pods
selector: # tells the controller which pods to watch/belong to this Replication Controller
myname: adam # these must match the labels
template: # template element defines a template to launch a new pod
metadata:
name: testpod6
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"]