Additional Rules for optional MAAS api only

Adds Ingress rules to turn off MAAS gui access if desired.

Change-Id: Ib2d212e10c68e279fcc76bc1cdf1293eff14de5f
This commit is contained in:
Samuel Pilla 2019-04-03 00:12:31 -05:00
parent 976454b6b9
commit 217e6ca544
1 changed files with 18 additions and 3 deletions

View File

@ -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 }}