22 lines
740 B
YAML
22 lines
740 B
YAML
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" }}
|
|
apiVersion: policy/v1
|
|
{{- else }}
|
|
apiVersion: policy/v1beta1
|
|
{{- end }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "stackstate-k8s-agent.fullname" . }}
|
|
labels:
|
|
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
|
|
{{ include "stackstate-k8s-agent.global.extraLabels" . | indent 4 }}
|
|
app.kubernetes.io/component: cluster-agent
|
|
annotations:
|
|
{{ include "stackstate-k8s-agent.global.extraAnnotations" . | indent 4 }}
|
|
spec:
|
|
maxUnavailable: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: cluster-agent
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/name: {{ include "stackstate-k8s-agent.name" . }}
|