File tree 3 files changed +57
-0
lines changed
3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Node ve Pod Affinity
2
+ ** node ve pod affinity-antiaffinity** konusuyla ilgili dosyalara buradan erişebilirsiniz.
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Pod
3
+ metadata :
4
+ name : frontendpod
5
+ labels :
6
+ app : frontend
7
+ deployment : test
8
+ spec :
9
+ containers :
10
+ - name : nginx
11
+ image : nginx:latest
12
+ ports :
13
+ - containerPort : 80
14
+ ---
15
+ apiVersion : v1
16
+ kind : Pod
17
+ metadata :
18
+ name : cachepod
19
+ spec :
20
+ affinity :
21
+ podAffinity :
22
+ requiredDuringSchedulingIgnoredDuringExecution :
23
+ - labelSelector :
24
+ matchExpressions :
25
+ - key : app
26
+ operator : In
27
+ values :
28
+ - frontend
29
+ topologyKey : kubernetes.io/hostname
30
+ preferredDuringSchedulingIgnoredDuringExecution :
31
+ - weight : 1
32
+ podAffinityTerm :
33
+ labelSelector :
34
+ matchExpressions :
35
+ - key : color
36
+ operator : In
37
+ values :
38
+ - blue
39
+ topologyKey : kubernetes.io/hostname
40
+ podAntiAffinity :
41
+ preferredDuringSchedulingIgnoredDuringExecution :
42
+ - weight : 100
43
+ podAffinityTerm :
44
+ labelSelector :
45
+ matchExpressions :
46
+ - key : deployment
47
+ operator : In
48
+ values :
49
+ - prod
50
+ topologyKey : topology.kubernetes.io/zone
51
+ containers :
52
+ - name : cachecontainer
53
+ image : redis:6-alpine
Original file line number Diff line number Diff line change
1
+ # Taint ve Toleration
2
+ ** taint ve toleration** konusuyla ilgili dosyalara buradan erişebilirsiniz.
You can’t perform that action at this time.
0 commit comments