-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.yaml
45 lines (45 loc) · 883 Bytes
/
example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: v1
kind: Pod
metadata:
name: test-pod
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- 10.10.0.21
- 10.10.0.22
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- 10.10.0.21
containers:
- image: nginx:1.7.9
name: test-container
resources:
requests:
memory: 2Gi
cpu: 1
limits:
memory: 4Gi
cpu: 2
volumeMounts:
- mountPath: /data
name: test-volume
volumes:
- k8ssVolume:
fsType: ext4
ReclaimPolicy: Delete
options:
size: 10G
bandwidth: 20MB
sharable: "false"
name: test-volume