From d082798649d017a9b097db84c8a87ab507bd665a Mon Sep 17 00:00:00 2001 From: Hechmi Dammak Date: Thu, 10 Aug 2023 12:24:38 +0100 Subject: [PATCH] XM2C-127 make default backend in ingress in helm alfresco settable by values --- README.md | 15 +++++++++++++-- .../templates/ingress/alfresco-ingress.yaml | 4 ++-- xenit-alfresco/values.yaml | 4 +++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 583bf0b..342ba6c 100644 --- a/README.md +++ b/README.md @@ -265,12 +265,23 @@ For more information take a look at backend: service: name: service-name - port: - number: service-port + port: + number: service-port ``` * Description: used to add more path to ingress under the same host name for new services +#### `ingress.defaultBackend.service` + +* Required: true +* Default: acs-service +* Description: the default service name that ingress will point to + +#### `ingress.defaultBackend.port` + +* Required: true +* Default: 30000 +* Description: the default service port that ingress will point to ### ACS #### `acs.replicas` diff --git a/xenit-alfresco/templates/ingress/alfresco-ingress.yaml b/xenit-alfresco/templates/ingress/alfresco-ingress.yaml index 1c5391d..3d41b34 100644 --- a/xenit-alfresco/templates/ingress/alfresco-ingress.yaml +++ b/xenit-alfresco/templates/ingress/alfresco-ingress.yaml @@ -22,9 +22,9 @@ spec: {{- end }} defaultBackend: service: - name: acs-service + name: {{ .Values.ingress.defaultBackend.service }} port: - number: 30000 + number: {{ .Values.ingress.defaultBackend.port }} rules: - host: {{ required "A host where your alfresco services can be reached on must be specified in values.ingress.host" .Values.ingress.host }} http: diff --git a/xenit-alfresco/values.yaml b/xenit-alfresco/values.yaml index f6923d3..b91e2d3 100644 --- a/xenit-alfresco/values.yaml +++ b/xenit-alfresco/values.yaml @@ -23,7 +23,9 @@ ingress: ingressAnnotations: kubernetes.io/ingress.class: "nginx" cert-manager.io/cluster-issuer: "letsencrypt-production" - + defaultBackend: + service: acs-service + port: 30000 acs: replicas: 1 image: