Skip to content

Commit d49dc6d

Browse files
affinity
1 parent deb75b4 commit d49dc6d

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

affinity/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Node ve Pod Affinity
2+
**node ve pod affinity-antiaffinity** konusuyla ilgili dosyalara buradan erişebilirsiniz.

affinity/podpodaffinity.yaml

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

tainttoleration/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Taint ve Toleration
2+
**taint ve toleration** konusuyla ilgili dosyalara buradan erişebilirsiniz.

0 commit comments

Comments
 (0)