apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
  name: {{ template "hadoop.fullname" . }}-yarn-rm
  labels:
    app: {{ template "hadoop.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
    component: yarn-rm
spec:
  selector:
    matchLabels:
      app: {{ template "hadoop.name" . }}
      release: {{ .Release.Name }}
      component: yarn-rm
  minAvailable: {{ .Values.yarn.resourceManager.pdbMinAvailable }}
  