k8s-manifests/jupyter/base/charts/jupyterhub/templates/proxy/pdb.yaml
Micke Nordin 324724c3b1
Jupytherhub:
Export 3.0.3 like so:
```
helm repo add jupyterhub https://hub.jupyter.org/helm-chart/
helm fetch jupyterhub/jupyterhub --version 3.0.3 --untar --untardir .
```
2023-09-25 16:29:56 +02:00

19 lines
602 B
YAML

{{- if .Values.proxy.chp.pdb.enabled -}}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "jupyterhub.proxy.fullname" . }}
labels:
{{- include "jupyterhub.labels" . | nindent 4 }}
spec:
{{- if not (typeIs "<nil>" .Values.proxy.chp.pdb.maxUnavailable) }}
maxUnavailable: {{ .Values.proxy.chp.pdb.maxUnavailable }}
{{- end }}
{{- if not (typeIs "<nil>" .Values.proxy.chp.pdb.minAvailable) }}
minAvailable: {{ .Values.proxy.chp.pdb.minAvailable }}
{{- end }}
selector:
matchLabels:
{{- include "jupyterhub.matchLabels" . | nindent 6 }}
{{- end }}