Adding dependencies, binary autostart
This commit is contained in:
16
opencloud/charts/loki/templates/single-binary/pdb.yaml
Normal file
16
opencloud/charts/loki/templates/single-binary/pdb.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
{{- $isSingleBinary := eq (include "loki.deployment.isSingleBinary" .) "true" -}}
|
||||
{{- if and .Values.podDisruptionBudget $isSingleBinary -}}
|
||||
---
|
||||
apiVersion: policy/v1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ template "loki.fullname" . }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
labels:
|
||||
{{- include "loki.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "loki.singleBinarySelectorLabels" . | nindent 6 }}
|
||||
{{ toYaml .Values.podDisruptionBudget | indent 2 }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user