Skip to content

Commit e334f83

Browse files
add manifestos de exemplo
1 parent 7505848 commit e334f83

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: nginx
5+
spec:
6+
affinity:
7+
nodeAffinity:
8+
preferredDuringSchedulingIgnoredDuringExecution:
9+
- weight: 1
10+
preference:
11+
matchExpressions:
12+
- key: disktype
13+
operator: In
14+
values:
15+
- ssd
16+
containers:
17+
- name: nginx
18+
image: nginx
19+
imagePullPolicy: IfNotPresent
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: nginx
5+
spec:
6+
affinity:
7+
nodeAffinity:
8+
requiredDuringSchedulingIgnoredDuringExecution:
9+
nodeSelectorTerms:
10+
- matchExpressions:
11+
- key: disktype
12+
operator: In
13+
values:
14+
- ssd
15+
containers:
16+
- name: nginx
17+
image: nginx
18+
imagePullPolicy: IfNotPresent

0 commit comments

Comments
 (0)