From 217e6ca544a7cf2fb3cbd05dab1e2126bd424fbd Mon Sep 17 00:00:00 2001 From: Samuel Pilla Date: Wed, 3 Apr 2019 00:12:31 -0500 Subject: [PATCH] Additional Rules for optional MAAS api only Adds Ingress rules to turn off MAAS gui access if desired. Change-Id: Ib2d212e10c68e279fcc76bc1cdf1293eff14de5f --- charts/maas/templates/ingress-region.yaml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/charts/maas/templates/ingress-region.yaml b/charts/maas/templates/ingress-region.yaml index 089f97f..7a2f0e3 100644 --- a/charts/maas/templates/ingress-region.yaml +++ b/charts/maas/templates/ingress-region.yaml @@ -29,11 +29,26 @@ spec: paths: {{- if .Values.conf.maas.ingress_disable_gui }} - path: /MAAS/api -{{- else }} - - path: / -{{- end }} backend: serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} servicePort: region-api + - path: /MAAS/images-stream + backend: + serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} + servicePort: region-api + - path: /MAAS/metadata + backend: + serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} + servicePort: region-api + - path: /MAAS/rpc + backend: + serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} + servicePort: region-api +{{- else }} + - path: / + backend: + serviceName: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} + servicePort: region-api +{{- end }} ... {{ end }}