File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed
hdfs-datanode-k8s/templates
hdfs-namenode-k8s/templates Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change 27
27
spec :
28
28
hostNetwork : true
29
29
hostPID : true
30
+ dnsPolicy : ClusterFirstWithHostNet
30
31
containers :
31
32
- name : datanode
32
33
image : uhopper/hadoop-datanode:2.7.2
62
63
- name : hdfs-data-{{ $index }}
63
64
mountPath : /hadoop/dfs/data/{{ $index }}
64
65
{{- end }}
65
- # Use subPath below to mount only a single file.
66
- # See https://github.com/dshulyak/kubernetes.github.io/commit/d58ba7b075bb4848349a2c920caaa08ff3773d70
67
- - name : resolv-conf-volume
68
- mountPath : /etc/resolv.conf
69
- subPath : resolv.conf
70
66
affinity :
71
67
nodeAffinity :
72
68
requiredDuringSchedulingIgnoredDuringExecution :
81
77
hostPath :
82
78
path : {{ $path }}
83
79
{{- end }}
84
- - configMap :
85
- name : hdfs-resolv-conf
86
- items :
87
- - key : resolv.conf
88
- path : resolv.conf
89
- name : resolv-conf-volume
Original file line number Diff line number Diff line change 46
46
# like weave. Otherwise, namenode fails to see physical IP address of datanodes.
47
47
hostNetwork : true
48
48
hostPID : true
49
+ dnsPolicy : ClusterFirstWithHostNet
49
50
containers :
50
51
- name : hdfs-namenode
51
52
image : uhopper/hadoop-namenode:2.7.2
58
59
volumeMounts :
59
60
- name : hdfs-name
60
61
mountPath : /hadoop/dfs/name
61
- # Use subPath below to mount only a single file.
62
- # See https://github.com/dshulyak/kubernetes.github.io/commit/d58ba7b075bb4848349a2c920caaa08ff3773d70
63
- - name : resolv-conf-volume
64
- mountPath : /etc/resolv.conf
65
- subPath : resolv.conf
66
62
# Pin the pod to a node. You can label your node like below:
67
63
# $ kubectl label nodes YOUR-NODE hdfs-namenode-selector=hdfs-namenode-0
68
64
nodeSelector :
72
68
- name : hdfs-name
73
69
hostPath :
74
70
path : {{ .Values.nameNodeHostPath }}
75
- - configMap :
76
- name : hdfs-resolv-conf
77
- items :
78
- - key : resolv.conf
79
- path : resolv.conf
80
- name : resolv-conf-volume
You can’t perform that action at this time.
0 commit comments