diff --git a/charts/maas/templates/service-ingress-headless.yaml b/charts/maas/templates/service-ingress-headless.yaml new file mode 100644 index 0000000..912ceb1 --- /dev/null +++ b/charts/maas/templates/service-ingress-headless.yaml @@ -0,0 +1,30 @@ +{{/* +Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/}} +{{- if .Values.manifests.maas_ingress }} +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ tuple "maas_ingress" "monitor" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} +spec: + clusterIP: 'None' + ports: + - name: http + port: 80 + selector: +{{ tuple . "maas" "ingress" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} +... +{{- end }} diff --git a/charts/maas/values.yaml b/charts/maas/values.yaml index 1c636b1..0e7bf10 100644 --- a/charts/maas/values.yaml +++ b/charts/maas/values.yaml @@ -24,6 +24,8 @@ dependencies: services: - service: maas_region endpoint: internal + - service: maas_ingress + endpoint: monitor jobs: - maas-export-api-key region_controller: @@ -32,6 +34,8 @@ dependencies: services: - service: maas_db endpoint: internal + - service: maas_ingress + endpoint: monitor db_init: services: - service: maas_db @@ -47,18 +51,28 @@ dependencies: endpoint: internal - service: maas_db endpoint: internal + - service: maas_ingress + endpoint: monitor import_resources: + jobs: + - maas-bootstrap-admin-user services: - service: maas_region endpoint: internal - service: maas_db endpoint: internal + - service: maas_ingress + endpoint: monitor export_api_key: + jobs: + - maas-bootstrap-admin-user services: - service: maas_region endpoint: internal - service: maas_db endpoint: internal + - service: maas_ingress + endpoint: monitor manifests: region_statefulset: true @@ -358,6 +372,7 @@ endpoints: hosts: default: maas-ingress error_pages: maas-ingress-error + monitor: maas-ingress-monitor host_fqdn_override: default: null port: