diff --git a/production/helm/loki-stack/Chart.yaml b/production/helm/loki-stack/Chart.yaml index 09803be5925a05510653f47a86085eb4c644ab57..30d3301d13e342cfcdf6aaedea5f728adb136ff9 100644 --- a/production/helm/loki-stack/Chart.yaml +++ b/production/helm/loki-stack/Chart.yaml @@ -1,5 +1,5 @@ name: loki-stack -version: 0.8.1 +version: 0.9.0 appVersion: 0.0.1 kubeVersion: "^1.10.0-0" description: "Loki: like Prometheus, but for logs." diff --git a/production/helm/loki/Chart.yaml b/production/helm/loki/Chart.yaml index 7c7753f7f5e70fd39e593576b6c238a380ac7282..734fb87593ba5493a8c781ff979a456ec961b43e 100644 --- a/production/helm/loki/Chart.yaml +++ b/production/helm/loki/Chart.yaml @@ -1,5 +1,5 @@ name: loki -version: 0.7.2 +version: 0.8.0 appVersion: 0.0.1 kubeVersion: "^1.10.0-0" description: "Loki: like Prometheus, but for logs." diff --git a/production/helm/loki/templates/_helpers.tpl b/production/helm/loki/templates/_helpers.tpl index 608753377ebe9f864b24f8285c75a51f7f3313bb..2e333aae60f885fd63299f76f51b56c90b9c08cc 100644 --- a/production/helm/loki/templates/_helpers.tpl +++ b/production/helm/loki/templates/_helpers.tpl @@ -41,4 +41,3 @@ Create the name of the service account {{ default "default" .Values.serviceAccount.name }} {{- end -}} {{- end -}} - diff --git a/production/helm/loki/templates/pdb.yaml b/production/helm/loki/templates/pdb.yaml new file mode 100644 index 0000000000000000000000000000000000000000..795733619d5e227361da2a4995bd579863749980 --- /dev/null +++ b/production/helm/loki/templates/pdb.yaml @@ -0,0 +1,15 @@ +{{- if .Values.podDisruptionBudget -}} +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: {{ template "loki.fullname" . }} + app: {{ template "loki.name" . }} + heritage: {{ .Release.Service }} + release: {{ .Release.Name }} + chart: {{ template "loki.chart" . }} +spec: + selector: + matchLabels: + app: {{ template "loki.name" . }} +{{ toYaml .Values.podDisruptionBudget | indent 2 }} +{{- end -}} \ No newline at end of file diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 32ed62c55a440d72666d3b505ae4664686e09a31..84c06fc67fd606be380f616339f8ce2f93ba254f 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -150,3 +150,9 @@ terminationGracePeriodSeconds: 30 ## Tolerations for pod assignment ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ tolerations: [] + +# The values to set in the PodDisruptionBudget spec +# If not set then a PodDisruptionBudget will not be created +podDisruptionBudget: {} +# minAvailable: 1 +# maxUnavailable: 1