File tree Expand file tree Collapse file tree 1 file changed +7
-22
lines changed
charts/hdfs-datanode-k8s/templates Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Original file line number Diff line number Diff line change 24
24
metadata :
25
25
labels :
26
26
name : hdfs-datanode
27
- annotations :
28
- # TODO: The following uses annotation to express affinity
29
- # because Kubernetes 1.5 supports affinity only in annotation as alpha
30
- # feature. In Kubernetes 1.6, this is now beta and supports regular
31
- # YAML construct. Switch to the official syntax when we support 1.6.
32
- scheduler.alpha.kubernetes.io/affinity : >
33
- {
34
- "nodeAffinity": {
35
- "requiredDuringSchedulingIgnoredDuringExecution": {
36
- "nodeSelectorTerms": [
37
- {
38
- "matchExpressions": [
39
- {
40
- "key": "hdfs-datanode-exclude",
41
- "operator": "DoesNotExist"
42
- }
43
- ]
44
- }
45
- ]
46
- }
47
- }
48
- }
49
27
spec :
50
28
hostNetwork : true
51
29
hostPID : true
89
67
- name : resolv-conf-volume
90
68
mountPath : /etc/resolv.conf
91
69
subPath : resolv.conf
70
+ affinity :
71
+ nodeAffinity :
72
+ requiredDuringSchedulingIgnoredDuringExecution :
73
+ nodeSelectorTerms :
74
+ - matchExpressions :
75
+ - key : hdfs-datanode-exclude
76
+ operator : DoesNotExist
92
77
restartPolicy : Always
93
78
volumes :
94
79
{{- range $index, $path := .Values.dataNodeHostPath }}
You can’t perform that action at this time.
0 commit comments