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:
parent
976454b6b9
commit
217e6ca544
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue