From eaa9a35000175db5a74cc418aa1e17fa9c3817e0 Mon Sep 17 00:00:00 2001 From: Ilya Gusev Date: Tue, 16 Apr 2024 18:22:25 +0300 Subject: [PATCH 1/5] Update values.yaml --- values.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/values.yaml b/values.yaml index 95ae59b..10fa39a 100644 --- a/values.yaml +++ b/values.yaml @@ -140,6 +140,9 @@ serviceAccount: # -- (object) The annotations to use for the krakend pod podAnnotations: {} +# -- (object) The annotations to use for the krakend deployment +deploymentAnnotations: {} + # -- (object) Labels to use for the krakend pod podLabels: {} From c1f67a5a122c9bed482dc78b7572b22d52c980a4 Mon Sep 17 00:00:00 2001 From: Ilya Gusev Date: Tue, 16 Apr 2024 18:26:54 +0300 Subject: [PATCH 2/5] Update deployment.yaml --- templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index e66d6e3..6da41c1 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -9,6 +9,10 @@ metadata: name: {{ include "krakend.fullname" . }} labels: {{- include "krakend.labels" . | nindent 4 }} + {{- if .Values.deploymentAnnotations }} + annotations: + {{- toYaml .Values.deploymentAnnotations | nindent 4 }} + {{- end }} spec: {{- if eq .Values.autoscaling.enabled .Values.keda.enabled }} replicas: {{ .Values.replicaCount }} From 92ec1b5b812a1b9add7d4a455fc0d0372e1f3da5 Mon Sep 17 00:00:00 2001 From: Ilya Gusev Date: Tue, 16 Apr 2024 18:28:23 +0300 Subject: [PATCH 3/5] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2aee537..4f609ec 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ please refer to [the official krakend documentation](https://www.krakend.io/docs |-----|------|---------|-------------| | affinity | object | `{}` | The affinity to use for the krakend pod | | autoscaling | object | `{"annotations":{},"behavior":{},"enabled":false,"maxReplicas":3,"minReplicas":1,"targetCPUUtilizationPercentage":50,"targetMemoryUtilizationPercentage":50}` | Configures HorizontalPodAutoscaler for your Deployment | +| deploymentAnnotations | object | `{}` | The annotations to use for the krakend Deployment | | deploymentType | string | `"deployment"` | The deployment type to use for the krakend service Valid values are `deployment` and `rollout` | | extraVolumeMounts | array | `[]` | extraVolumeMounts allows you to mount extra volumes to the krakend pod | | extraVolumes | array | `[]` | extraVolumes allows you to mount extra volumes to the krakend pod | From 9fbc1b33d5a92d05d50eb65c45fa4493623500b4 Mon Sep 17 00:00:00 2001 From: Ilya Gusev Date: Tue, 16 Apr 2024 18:38:12 +0300 Subject: [PATCH 4/5] Update deployment.yaml --- templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 6da41c1..c32c00a 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -9,7 +9,7 @@ metadata: name: {{ include "krakend.fullname" . }} labels: {{- include "krakend.labels" . | nindent 4 }} - {{- if .Values.deploymentAnnotations }} + {{- with .Values.deploymentAnnotations }} annotations: {{- toYaml .Values.deploymentAnnotations | nindent 4 }} {{- end }} From e87e54747380436d07dd8e14f091ec28ef9269fe Mon Sep 17 00:00:00 2001 From: Ilya Gusev Date: Tue, 16 Apr 2024 18:40:50 +0300 Subject: [PATCH 5/5] Update deployment.yaml --- templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index c32c00a..bd771c8 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -11,7 +11,7 @@ metadata: {{- include "krakend.labels" . | nindent 4 }} {{- with .Values.deploymentAnnotations }} annotations: - {{- toYaml .Values.deploymentAnnotations | nindent 4 }} + {{- toYaml . | nindent 4 }} {{- end }} spec: {{- if eq .Values.autoscaling.enabled .Values.keda.enabled }}