apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
  name: {{ template "hadoop.fullname" . }}-hdfs-dn
  labels:
    app: {{ template "hadoop.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
    component: hdfs-dn
spec:
  selector:
    matchLabels:
      app: {{ template "hadoop.name" . }}
      release: {{ .Release.Name }}
      component: hdfs-dn
  minAvailable: {{ .Values.hdfs.dataNode.pdbMinAvailable }}
  