# A headless service to create DNS records
apiVersion: v1
kind: Service
metadata:
  name: {{ template "hadoop.fullname" . }}-hdfs-nn
  labels:
    app: {{ template "hadoop.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
    component: hdfs-nn
spec:
  ports:
  - name: dfs
    port: 9000
    protocol: TCP
  - name: webhdfs
    port: 50070
  clusterIP: None
  selector:
    app: {{ template "hadoop.name" . }}
    release: {{ .Release.Name }}
    component: hdfs-nn