Skip to content

Commit d0d1382

Browse files
authored
Add files via upload
1 parent 073c420 commit d0d1382

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

pod-definition.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+

tolerations.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)