1 # A headless service to create DNS records.
5 name: {{ template "hdfs-k8s.namenode.fullname" . }}
7 app: {{ template "hdfs-k8s.namenode.name" . }}
8 chart: {{ template "hdfs-k8s.subchart" . }}
9 release: {{ .Release.Name }}
16 app: {{ template "hdfs-k8s.namenode.name" . }}
17 release: {{ .Release.Name }}
19 apiVersion: apps/v1beta1
22 name: {{ template "hdfs-k8s.namenode.fullname" . }}
24 app: {{ template "hdfs-k8s.namenode.name" . }}
25 chart: {{ template "hdfs-k8s.subchart" . }}
26 release: {{ .Release.Name }}
28 serviceName: {{ template "hdfs-k8s.namenode.fullname" . }}
29 # Create a size-1 set.
34 app: {{ template "hdfs-k8s.namenode.name" . }}
35 release: {{ .Release.Name }}
36 {{- if .Values.podAnnotations }}
38 {{ toYaml .Values.podAnnotations | indent 8 }}
41 {{- if .Values.affinity }}
43 {{ toYaml .Values.affinity | indent 8 }}
45 {{- if .Values.nodeSelector }}
47 {{ toYaml .Values.nodeSelector | indent 8 }}
49 {{- if .Values.tolerations }}
51 {{ toYaml .Values.tolerations | indent 8 }}
53 # Use hostNetwork so datanodes connect to namenode without going through an overlay network
54 # like weave. Otherwise, namenode fails to see physical IP address of datanodes.
57 dnsPolicy: ClusterFirstWithHostNet
60 image: uhopper/hadoop-namenode:2.7.2
62 - name: HADOOP_CUSTOM_CONF_DIR
63 value: /etc/hadoop-custom-conf
71 mountPath: /hadoop/dfs/name
73 mountPath: /etc/hadoop-custom-conf
79 path: {{ .Values.nameNodeHostPath }}
82 name: {{ template "hdfs-k8s.config.fullname" . }}