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 | diff --git a/templates/deployment.yaml b/templates/deployment.yaml index e66d6e3..bd771c8 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -9,6 +9,10 @@ metadata: name: {{ include "krakend.fullname" . }} labels: {{- include "krakend.labels" . | nindent 4 }} + {{- with .Values.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: {{- if eq .Values.autoscaling.enabled .Values.keda.enabled }} replicas: {{ .Values.replicaCount }} 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: {}