From 0aad960acd5fa58e47adfe42a8bb51b386305b0b Mon Sep 17 00:00:00 2001 From: Oleksandr Ivanov Date: Sun, 4 Jul 2021 14:54:13 +0300 Subject: [PATCH] add annotations to ingress --- botfront-project/templates/ingress.yaml | 3 +++ botfront-project/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/botfront-project/templates/ingress.yaml b/botfront-project/templates/ingress.yaml index dde25c9..49e0a3f 100644 --- a/botfront-project/templates/ingress.yaml +++ b/botfront-project/templates/ingress.yaml @@ -9,6 +9,9 @@ metadata: app: {{ $.Release.Name }}-{{ if ne $env "default"}}{{ $env }}-{{ end }}{{ $.Values.appName }} name: {{ $.Release.Name }}-{{ if ne $env "default"}}{{ $env }}-{{ end }}rasa-ingress annotations: + {{- with .Values.ingress.annotations }} + {{ toYaml . | nindent 4 }} + {{- end }} {{- if $.Values.ingress.nginx.enabled}} {{- if $.Values.ingress.nginx.enableSessionAffinity}} nginx.ingress.kubernetes.io/affinity: "cookie" diff --git a/botfront-project/values.yaml b/botfront-project/values.yaml index dc79b31..fe55390 100644 --- a/botfront-project/values.yaml +++ b/botfront-project/values.yaml @@ -38,6 +38,7 @@ persistenceClaim: ingress: enabled: true + annotations: {} nginx: # Set to true if your cluster uses the nginx-ingress controller enabled: true