helm-charts/postgres-operator/templates/postgres-pod-priority-class.yaml

17 lines
647 B
YAML
Raw Normal View History

{{- if .Values.podPriorityClassName.create }}
2021-01-17 01:09:41 +00:00
apiVersion: scheduling.k8s.io/v1
description: 'Use only for databases controlled by Postgres operator'
kind: PriorityClass
metadata:
labels:
app.kubernetes.io/name: {{ template "postgres-operator.name" . }}
helm.sh/chart: {{ template "postgres-operator.chart" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
name: {{ include "postgres-pod.priorityClassName" . }}
2021-11-14 22:17:20 +00:00
namespace: {{ .Release.Namespace }}
2021-01-17 01:09:41 +00:00
preemptionPolicy: PreemptLowerPriority
globalDefault: false
value: {{ .Values.podPriorityClassName.priority }}
2021-01-17 01:09:41 +00:00
{{- end }}