File tree 2 files changed +50
-0
lines changed
2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Pod
3
+ metadata :
4
+ name : example-pod
5
+ spec :
6
+ tolerations :
7
+ - key : " node-role.kubernetes.io/control-plane"
8
+ operator : " Exists"
9
+ effect : " NoSchedule"
10
+ containers :
11
+ - name : example-container
12
+ image : nginx
13
+
14
+
15
+
16
+
17
+
18
+
19
+ # GNU nano 6.3 redis-definition.yaml
20
+ # apiVersion: v1
21
+ # kind: Pod
22
+ # metadata:
23
+ # labels:
24
+ # run: redis
25
+ # name: redis
26
+ # spec:
27
+ # containers:
28
+ # - image: redis123
29
+ # name: redis
30
+
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ReplicationController
3
+ metadata :
4
+ name : example-rc
5
+ spec :
6
+ replicas : 1
7
+ selector :
8
+ app : example-app
9
+ template : # Note that 'template' is used here
10
+ metadata :
11
+ labels :
12
+ app : example-app
13
+ spec :
14
+ tolerations : # Tolerations are placed here
15
+ - key : " node-role.kubernetes.io/control-plane"
16
+ operator : " Exists"
17
+ effect : " NoSchedule"
18
+ containers :
19
+ - name : example-container
20
+ image : nginx
You can’t perform that action at this time.
0 commit comments