Endpoint lookup namespace and fqdn support

This PS adds namespace and fqdn support to endpoint lookup functions,
it also permits over-riding of the puplic endpoint for ingress.

Change-Id: Ib61c5c00a214d75fe85fbffe9080c2ae88bd8cb9
This commit is contained in:
Pete Birley 2017-08-30 23:31:16 -05:00
parent cb8efbd954
commit bede94c835
36 changed files with 521 additions and 132 deletions

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_api }} {{- if .Values.manifests.ingress_api }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.api.ingress.public }} {{- if .Values.network.api.ingress.public }}
{{- $backendServiceType := "key-manager" }}
{{- $backendPort := "b-api" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "key-manager" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "key-manager" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "key-manager" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: b-api servicePort: {{ $backendPort }}
- host: {{ tuple "key-manager" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "key-manager" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: b-api servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -304,6 +304,7 @@ secrets:
user: barbican-db-user user: barbican-db-user
endpoints: endpoints:
cluster_domain_suffix: cluster.local
identity: identity:
name: keystone name: keystone
auth: auth:
@ -325,6 +326,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -339,6 +342,8 @@ endpoints:
hosts: hosts:
default: barbican-api default: barbican-api
public: barbican public: barbican
host_fqdn_overide:
default: null
path: path:
default: /v1 default: /v1
scheme: scheme:
@ -357,6 +362,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /barbican path: /barbican
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -372,6 +379,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: / path: /
scheme: rabbit scheme: rabbit
port: port:
@ -380,6 +389,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211

View File

@ -274,9 +274,12 @@ storageclass:
user_secret_name: pvc-ceph-client-key user_secret_name: pvc-ceph-client-key
endpoints: endpoints:
cluster_domain_suffix: cluster.local
ceph_mon: ceph_mon:
hosts: hosts:
default: ceph-mon default: ceph-mon
host_fqdn_overide:
default: null
port: port:
mon: mon:
default: 6789 default: 6789

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_api }} {{- if .Values.manifests.ingress_api }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.api.ingress.public }} {{- if .Values.network.api.ingress.public }}
{{- $backendServiceType := "volume" }}
{{- $backendPort := "c-api" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "volume" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "volume" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "volume" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: c-api servicePort: {{ $backendPort }}
- host: {{ tuple "volume" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "volume" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: c-api servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -455,6 +455,7 @@ secrets:
# this swaps the service name and type, and should be rolled out to other # this swaps the service name and type, and should be rolled out to other
# services. # services.
endpoints: endpoints:
cluster_domain_suffix: cluster.local
identity: identity:
name: keystone name: keystone
auth: auth:
@ -476,6 +477,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -490,6 +493,8 @@ endpoints:
hosts: hosts:
default: glance-api default: glance-api
public: glance public: glance
host_fqdn_overide:
default: null
path: path:
default: null default: null
scheme: scheme:
@ -503,6 +508,8 @@ endpoints:
hosts: hosts:
default: glance-registry default: glance-registry
public: glance-reg public: glance-reg
host_fqdn_overide:
default: null
path: path:
default: null default: null
scheme: scheme:
@ -516,6 +523,8 @@ endpoints:
hosts: hosts:
default: cinder-api default: cinder-api
public: cinder public: cinder
host_fqdn_overide:
default: null
path: path:
default: '/v1/%(tenant_id)s' default: '/v1/%(tenant_id)s'
scheme: scheme:
@ -529,6 +538,8 @@ endpoints:
hosts: hosts:
default: cinder-api default: cinder-api
public: cinder public: cinder
host_fqdn_overide:
default: null
path: path:
default: '/v2/%(tenant_id)s' default: '/v2/%(tenant_id)s'
scheme: scheme:
@ -542,6 +553,8 @@ endpoints:
hosts: hosts:
default: cinder-api default: cinder-api
public: cinder public: cinder
host_fqdn_overide:
default: null
path: path:
default: '/v3/%(tenant_id)s' default: '/v3/%(tenant_id)s'
scheme: scheme:
@ -560,6 +573,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /cinder path: /cinder
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -575,6 +590,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: / path: /
scheme: rabbit scheme: rabbit
port: port:
@ -583,6 +600,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211

View File

@ -17,30 +17,44 @@ limitations under the License.
{{- if .Values.manifests.ingress_api }} {{- if .Values.manifests.ingress_api }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.api.ingress.public }} {{- if .Values.network.api.ingress.public }}
{{- $backendServiceType := "image" }}
{{- $backendPort := "g-api" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "image" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
ingress.kubernetes.io/proxy-body-size: {{ .Values.network.api.ingress.proxy_body_size }} ingress.kubernetes.io/proxy-body-size: {{ .Values.network.api.ingress.proxy_body_size }}
spec: spec:
rules: rules:
- host: {{ tuple "image" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "image" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: g-api servicePort: {{ $backendPort }}
- host: {{ tuple "image" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "image" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: g-api servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_registry }} {{- if .Values.manifests.ingress_registry }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.registry.ingress.public }} {{- if .Values.network.registry.ingress.public }}
{{- $backendServiceType := "image_registry" }}
{{- $backendPort := "g-reg" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "image_registry" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "image_registry" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "image_registry" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: g-reg servicePort: {{ $backendPort }}
- host: {{ tuple "image_registry" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "image_registry" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: g-reg servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -269,6 +269,7 @@ secrets:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
identity: identity:
name: keystone name: keystone
auth: auth:
@ -290,6 +291,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -304,6 +307,8 @@ endpoints:
hosts: hosts:
default: glance-api default: glance-api
public: glance public: glance
host_fqdn_overide:
default: null
path: path:
default: null default: null
scheme: scheme:
@ -317,6 +322,8 @@ endpoints:
hosts: hosts:
default: glance-registry default: glance-registry
public: glance-reg public: glance-reg
host_fqdn_overide:
default: null
path: path:
default: null default: null
scheme: scheme:
@ -335,6 +342,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /glance path: /glance
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -343,6 +352,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211
@ -356,6 +367,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: / path: /
scheme: rabbit scheme: rabbit
port: port:

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_api }} {{- if .Values.manifests.ingress_api }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.api.ingress.public }} {{- if .Values.network.api.ingress.public }}
{{- $backendServiceType := "orchestration" }}
{{- $backendPort := "h-api" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "orchestration" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "orchestration" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "orchestration" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: h-api servicePort: {{ $backendPort }}
- host: {{ tuple "orchestration" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "orchestration" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: h-api servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_cfn }} {{- if .Values.manifests.ingress_cfn }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.cfn.ingress.public }} {{- if .Values.network.cfn.ingress.public }}
{{- $backendServiceType := "cloudformation" }}
{{- $backendPort := "h-cfn" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "cloudformation" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "cloudformation" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "cloudformation" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: h-cfn servicePort: {{ $backendPort }}
- host: {{ tuple "cloudformation" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "cloudformation" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: h-cfn servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_cloudwatch }} {{- if .Values.manifests.ingress_cloudwatch }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.cloudwatch.ingress.public }} {{- if .Values.network.cloudwatch.ingress.public }}
{{- $backendServiceType := "cloudwatch" }}
{{- $backendPort := "h-cwh" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "cloudwatch" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "cloudwatch" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "cloudwatch" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: h-cwh servicePort: {{ $backendPort }}
- host: {{ tuple "cloudwatch" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "cloudwatch" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: h-cwh servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -296,6 +296,7 @@ secrets:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
identity: identity:
name: keystone name: keystone
auth: auth:
@ -331,6 +332,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -345,6 +348,8 @@ endpoints:
hosts: hosts:
default: heat-api default: heat-api
public: heat public: heat
host_fqdn_overide:
default: null
path: path:
default: '/v1/%(project_id)s' default: '/v1/%(project_id)s'
scheme: scheme:
@ -358,6 +363,8 @@ endpoints:
hosts: hosts:
default: heat-cfn default: heat-cfn
public: cloudformation public: cloudformation
host_fqdn_overide:
default: null
path: path:
default: /v1 default: /v1
scheme: scheme:
@ -372,6 +379,8 @@ endpoints:
hosts: hosts:
default: heat-cloudwatch default: heat-cloudwatch
public: cloudwatch public: cloudwatch
host_fqdn_overide:
default: null
path: path:
default: null default: null
type: null type: null
@ -391,6 +400,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /heat path: /heat
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -399,6 +410,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211
@ -412,6 +425,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: / path: /
scheme: rabbit scheme: rabbit
port: port:

View File

@ -30,11 +30,9 @@ limitations under the License.
{{- $context := index . 4 -}} {{- $context := index . 4 -}}
{{- $endpointMap := index $context.Values.endpoints $type }} {{- $endpointMap := index $context.Values.endpoints $type }}
{{- $userMap := index $endpointMap.auth $userclass }} {{- $userMap := index $endpointMap.auth $userclass }}
{{- $fqdn := default "svc.cluster.local" $context.Release.Namespace -}} {{- $clusterSuffix := printf "%s.%s" "svc" $context.Values.endpoints.cluster_domain_suffix }}
{{- if $context.Values.endpoints.fqdn -}}
{{- $fqdn := $context.Values.endpoints.fqdn -}}
{{- end -}}
{{- with $endpointMap -}} {{- with $endpointMap -}}
{{- $namespace := .namespace | default $context.Release.Namespace }}
{{- $endpointScheme := .scheme }} {{- $endpointScheme := .scheme }}
{{- $endpointUser := index $userMap "username" }} {{- $endpointUser := index $userMap "username" }}
{{- $endpointPass := index $userMap "password" }} {{- $endpointPass := index $userMap "password" }}
@ -42,6 +40,8 @@ limitations under the License.
{{- $endpointPortMAP := index .port $port }} {{- $endpointPortMAP := index .port $port }}
{{- $endpointPort := index $endpointPortMAP $endpoint | default (index $endpointPortMAP "default") }} {{- $endpointPort := index $endpointPortMAP $endpoint | default (index $endpointPortMAP "default") }}
{{- $endpointPath := .path | default "" }} {{- $endpointPath := .path | default "" }}
{{- printf "%s://%s:%s@%s.%s:%1.f%s" $endpointScheme $endpointUser $endpointPass $endpointHost $fqdn $endpointPort $endpointPath -}} {{- $endpointClusterHostname := printf "%s.%s.%s" $endpointHost $namespace $clusterSuffix }}
{{- $endpointHostname := index .host_fqdn_overide $endpoint | default .host_fqdn_overide.default | default $endpointClusterHostname }}
{{- printf "%s://%s:%s@%s:%1.f%s" $endpointScheme $endpointUser $endpointPass $endpointHostname $endpointPort $endpointPath -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View File

@ -27,16 +27,16 @@ limitations under the License.
{{- $endpoint := index . 1 -}} {{- $endpoint := index . 1 -}}
{{- $port := index . 2 -}} {{- $port := index . 2 -}}
{{- $context := index . 3 -}} {{- $context := index . 3 -}}
{{- $clusterSuffix := printf "%s.%s" "svc" $context.Values.endpoints.cluster_domain_suffix }}
{{- $endpointMap := index $context.Values.endpoints $type }} {{- $endpointMap := index $context.Values.endpoints $type }}
{{- $fqdn := default "svc.cluster.local" $context.Release.Namespace -}}
{{- if $context.Values.endpoints.fqdn -}}
{{- $fqdn := $context.Values.endpoints.fqdn -}}
{{- end -}}
{{- with $endpointMap -}} {{- with $endpointMap -}}
{{- $namespace := .namespace | default $context.Release.Namespace }}
{{- $endpointScheme := .scheme }} {{- $endpointScheme := .scheme }}
{{- $endpointHost := index .hosts $endpoint | default .hosts.default }} {{- $endpointHost := index .hosts $endpoint | default .hosts.default }}
{{- $endpointPortMAP := index .port $port }} {{- $endpointPortMAP := index .port $port }}
{{- $endpointPort := index $endpointPortMAP $endpoint | default (index $endpointPortMAP "default") }} {{- $endpointPort := index $endpointPortMAP $endpoint | default (index $endpointPortMAP "default") }}
{{- printf "%s.%s:%1.f" $endpointHost $fqdn $endpointPort -}} {{- $endpointClusterHostname := printf "%s.%s.%s" $endpointHost $namespace $clusterSuffix }}
{{- $endpointHostname := index .host_fqdn_overide $endpoint | default .host_fqdn_overide.default | default $endpointClusterHostname }}
{{- printf "%s:%1.f" $endpointHostname $endpointPort -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View File

@ -24,14 +24,14 @@ limitations under the License.
{{- $type := index . 0 -}} {{- $type := index . 0 -}}
{{- $endpoint := index . 1 -}} {{- $endpoint := index . 1 -}}
{{- $context := index . 2 -}} {{- $context := index . 2 -}}
{{- $clusterSuffix := printf "%s.%s" "svc" $context.Values.endpoints.cluster_domain_suffix }}
{{- $endpointMap := index $context.Values.endpoints $type }} {{- $endpointMap := index $context.Values.endpoints $type }}
{{- $fqdn := default "svc.cluster.local" $context.Release.Namespace -}}
{{- if $context.Values.endpoints.fqdn -}}
{{- $fqdn := $context.Values.endpoints.fqdn -}}
{{- end -}}
{{- with $endpointMap -}} {{- with $endpointMap -}}
{{- $namespace := .namespace | default $context.Release.Namespace }}
{{- $endpointScheme := .scheme }} {{- $endpointScheme := .scheme }}
{{- $endpointHost := index .hosts $endpoint | default .hosts.default }} {{- $endpointHost := index .hosts $endpoint | default .hosts.default }}
{{- printf "%s.%s" $endpointHost $fqdn -}} {{- $endpointClusterHostname := printf "%s.%s.%s" $endpointHost $namespace $clusterSuffix }}
{{- $endpointHostname := index .host_fqdn_overide $endpoint | default .host_fqdn_overide.default | default $endpointClusterHostname }}
{{- printf "%s" $endpointHostname -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View File

@ -0,0 +1,36 @@
{{/*
Copyright 2017 The Openstack-Helm Authors.
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.
*/}}
# This function returns hostnames from endpoint definitions for use cases
# where the uri style return is not appropriate, and only the hostname
# portion is used or relevant in the template:
# { tuple "memcache" "internal" . | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }
# returns: internal_host_namespaced
{{- define "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" -}}
{{- $type := index . 0 -}}
{{- $endpoint := index . 1 -}}
{{- $context := index . 2 -}}
{{- $endpointMap := index $context.Values.endpoints $type }}
{{- with $endpointMap -}}
{{- $namespace := .namespace | default $context.Release.Namespace }}
{{- $endpointScheme := .scheme }}
{{- $endpointHost := index .hosts $endpoint | default .hosts.default }}
{{- $endpointClusterHostname := printf "%s.%s" $endpointHost $namespace }}
{{- $endpointHostname := index .host_fqdn_overide $endpoint | default .host_fqdn_overide.default | default $endpointClusterHostname }}
{{- printf "%s" $endpointHostname -}}
{{- end -}}
{{- end -}}

View File

@ -28,6 +28,7 @@ limitations under the License.
{{- with $endpointMap -}} {{- with $endpointMap -}}
{{- $endpointScheme := .scheme }} {{- $endpointScheme := .scheme }}
{{- $endpointHost := index .hosts $endpoint | default .hosts.default}} {{- $endpointHost := index .hosts $endpoint | default .hosts.default}}
{{- printf "%s" $endpointHost -}} {{- $endpointHostname := printf "%s" $endpointHost }}
{{- printf "%s" $endpointHostname -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View File

@ -24,17 +24,17 @@ limitations under the License.
{{- $endpoint := index . 1 -}} {{- $endpoint := index . 1 -}}
{{- $port := index . 2 -}} {{- $port := index . 2 -}}
{{- $context := index . 3 -}} {{- $context := index . 3 -}}
{{- $clusterSuffix := printf "%s.%s" "svc" $context.Values.endpoints.cluster_domain_suffix }}
{{- $endpointMap := index $context.Values.endpoints $type }} {{- $endpointMap := index $context.Values.endpoints $type }}
{{- $fqdn := default "svc.cluster.local" $context.Release.Namespace -}}
{{- if $context.Values.endpoints.fqdn -}}
{{- $fqdn := $context.Values.endpoints.fqdn -}}
{{- end -}}
{{- with $endpointMap -}} {{- with $endpointMap -}}
{{- $namespace := $endpointMap.namespace | default $context.Release.Namespace }}
{{- $endpointScheme := index .scheme $endpoint | default .scheme.default }} {{- $endpointScheme := index .scheme $endpoint | default .scheme.default }}
{{- $endpointHost := index .hosts $endpoint | default .hosts.default }} {{- $endpointHost := index .hosts $endpoint | default .hosts.default }}
{{- $endpointPortMAP := index .port $port }} {{- $endpointPortMAP := index .port $port }}
{{- $endpointPort := index $endpointPortMAP $endpoint | default (index $endpointPortMAP "default") }} {{- $endpointPort := index $endpointPortMAP $endpoint | default (index $endpointPortMAP "default") }}
{{- $endpointPath := index .path $endpoint | default .path.default | default "/" }} {{- $endpointPath := index .path $endpoint | default .path.default | default "/" }}
{{- printf "%s://%s.%s:%1.f%s" $endpointScheme $endpointHost $fqdn $endpointPort $endpointPath -}} {{- $endpointClusterHostname := printf "%s.%s.%s" $endpointHost $namespace $clusterSuffix }}
{{- $endpointHostname := index .host_fqdn_overide $endpoint | default .host_fqdn_overide.default | default $endpointClusterHostname }}
{{- printf "%s://%s:%1.f%s" $endpointScheme $endpointHostname $endpointPort $endpointPath -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View File

@ -17,29 +17,31 @@ limitations under the License.
{{- if .Values.manifests.ingress_api }} {{- if .Values.manifests.ingress_api }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.ingress.public }} {{- if .Values.network.ingress.public }}
{{- $backendServiceType := "dashboard" }}
{{- $backendPort := "http" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "dashboard" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "dashboard" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "dashboard" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: http servicePort: {{ $backendPort }}
- host: {{ tuple "dashboard" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
http:
paths:
- path: /
backend:
serviceName: {{ tuple "dashboard" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
servicePort: http
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -1190,11 +1190,14 @@ secrets:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
identity: identity:
name: keystone name: keystone
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -1207,6 +1210,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211
@ -1215,6 +1220,8 @@ endpoints:
hosts: hosts:
default: horizon-int default: horizon-int
public: horizon public: horizon
host_fqdn_overide:
default: null
path: path:
default: null default: null
scheme: scheme:
@ -1232,6 +1239,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /horizon path: /horizon
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_api }} {{- if .Values.manifests.ingress_api }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.api.ingress.public }} {{- if .Values.network.api.ingress.public }}
{{- $backendServiceType := "identity" }}
{{- $backendPort := "ks-pub" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "identity" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "identity" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "identity" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: ks-pub servicePort: {{ $backendPort }}
- host: {{ tuple "identity" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "identity" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: ks-pub servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -43,9 +43,9 @@ spec:
env: env:
- name: OS_BOOTSTRAP_ADMIN_URL - name: OS_BOOTSTRAP_ADMIN_URL
value: {{ tuple "identity" "admin" "admin" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }} value: {{ tuple "identity" "admin" "admin" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
- name: OS_BOOTSTRAP_PUBLIC_URL
value: {{ tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
- name: OS_BOOTSTRAP_INTERNAL_URL - name: OS_BOOTSTRAP_INTERNAL_URL
value: {{ tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
- name: OS_BOOTSTRAP_PUBLIC_URL
value: {{ tuple "identity" "public" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }} value: {{ tuple "identity" "public" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
{{- with $env := dict "ksUserSecret" .Values.secrets.identity.admin }} {{- with $env := dict "ksUserSecret" .Values.secrets.identity.admin }}
{{- include "helm-toolkit.snippets.keystone_openrc_env_vars" $env | indent 12 }} {{- include "helm-toolkit.snippets.keystone_openrc_env_vars" $env | indent 12 }}

View File

@ -460,7 +460,9 @@ secrets:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
identity: identity:
namespace: null
name: keystone name: keystone
auth: auth:
admin: admin:
@ -473,6 +475,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -483,6 +487,7 @@ endpoints:
api: api:
default: 80 default: 80
oslo_db: oslo_db:
namespace: null
auth: auth:
admin: admin:
username: root username: root
@ -492,12 +497,15 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /keystone path: /keystone
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
mysql: mysql:
default: 3306 default: 3306
oslo_messaging: oslo_messaging:
namespace: null
auth: auth:
admin: admin:
username: admin username: admin
@ -507,14 +515,19 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: /openstack path: /openstack
scheme: rabbit scheme: rabbit
port: port:
amqp: amqp:
default: 5672 default: 5672
oslo_cache: oslo_cache:
namespace: null
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_api }} {{- if .Values.manifests.ingress_api }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.api.ingress.public }} {{- if .Values.network.api.ingress.public }}
{{- $backendServiceType := "container-infra" }}
{{- $backendPort := "m-api" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "container-infra" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "container-infra" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "container-infra" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: m-api servicePort: {{ $backendPort }}
- host: {{ tuple "container-infra" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "container-infra" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: m-api servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -168,6 +168,7 @@ secrets:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
identity: identity:
name: keystone name: keystone
auth: auth:
@ -189,6 +190,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -203,6 +206,8 @@ endpoints:
hosts: hosts:
default: magnum-api default: magnum-api
public: magnum public: magnum
host_fqdn_overide:
default: null
path: path:
default: /v1 default: /v1
scheme: scheme:
@ -221,6 +226,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /magnum path: /magnum
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -229,6 +236,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211
@ -242,6 +251,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: / path: /
scheme: rabbit scheme: rabbit
port: port:

View File

@ -71,6 +71,7 @@ resources:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
oslo_db: oslo_db:
auth: auth:
admin: admin:
@ -79,6 +80,8 @@ endpoints:
hosts: hosts:
default: mariadb default: mariadb
discovery: mariadb-discovery discovery: mariadb-discovery
host_fqdn_overide:
default: null
path: null path: null
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_api }} {{- if .Values.manifests.ingress_api }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.api.ingress.public }} {{- if .Values.network.api.ingress.public }}
{{- $backendServiceType := "workflow" }}
{{- $backendPort := "w-api" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "workflow" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "workflow" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "workflow" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: w-api servicePort: {{ $backendPort }}
- host: {{ tuple "workflow" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "workflow" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: w-api servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -129,6 +129,7 @@ secrets:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
identity: identity:
name: keystone name: keystone
auth: auth:
@ -150,6 +151,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -164,6 +167,8 @@ endpoints:
hosts: hosts:
default: mistral-api default: mistral-api
public: mistral public: mistral
host_fqdn_overide:
default: null
path: path:
default: /v2 default: /v2
scheme: scheme:
@ -182,6 +187,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /mistral path: /mistral
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -197,6 +204,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: / path: /
scheme: rabbit scheme: rabbit
port: port:
@ -205,6 +214,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_server }} {{- if .Values.manifests.ingress_server }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.server.ingress.public }} {{- if .Values.network.server.ingress.public }}
{{- $backendServiceType := "network" }}
{{- $backendPort := "q-api" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "network" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "network" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "network" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: q-api servicePort: {{ $backendPort }}
- host: {{ tuple "network" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "network" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: q-api servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -809,6 +809,7 @@ secrets:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
oslo_db: oslo_db:
auth: auth:
admin: admin:
@ -819,6 +820,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /neutron path: /neutron
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -834,6 +837,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: / path: /
scheme: rabbit scheme: rabbit
port: port:
@ -842,6 +847,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211
@ -850,6 +857,8 @@ endpoints:
hosts: hosts:
default: nova-api default: nova-api
public: nova public: nova
host_fqdn_overide:
default: null
path: path:
default: "/v2/%(tenant_id)s" default: "/v2/%(tenant_id)s"
scheme: scheme:
@ -883,6 +892,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -897,6 +908,8 @@ endpoints:
hosts: hosts:
default: neutron-server default: neutron-server
public: neutron public: neutron
host_fqdn_overide:
default: null
path: path:
default: null default: null
scheme: scheme:

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_metadata }} {{- if .Values.manifests.ingress_metadata }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.metadata.ingress.public }} {{- if .Values.network.metadata.ingress.public }}
{{- $backendServiceType := "compute_metadata" }}
{{- $backendPort := "n-meta" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "compute_metadata" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "compute_metadata" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "compute_metadata" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: n-meta servicePort: {{ $backendPort }}
- host: {{ tuple "compute_metadata" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "compute_metadata" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: n-meta servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_osapi }} {{- if .Values.manifests.ingress_osapi }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.osapi.ingress.public }} {{- if .Values.network.osapi.ingress.public }}
{{- $backendServiceType := "compute" }}
{{- $backendPort := "n-api" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "compute" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "compute" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "compute" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: n-api servicePort: {{ $backendPort }}
- host: {{ tuple "compute" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "compute" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: n-api servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -674,6 +674,7 @@ secrets:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
oslo_db: oslo_db:
auth: auth:
admin: admin:
@ -684,6 +685,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /nova path: /nova
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -699,6 +702,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /nova_api path: /nova_api
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -714,6 +719,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: / path: /
scheme: rabbit scheme: rabbit
port: port:
@ -722,6 +729,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211
@ -746,6 +755,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -760,6 +771,8 @@ endpoints:
hosts: hosts:
default: glance-api default: glance-api
public: glance public: glance
host_fqdn_overide:
default: null
path: path:
default: null default: null
scheme: scheme:
@ -773,6 +786,8 @@ endpoints:
hosts: hosts:
default: nova-api default: nova-api
public: nova public: nova
host_fqdn_overide:
default: null
path: path:
default: "/v2/%(tenant_id)s" default: "/v2/%(tenant_id)s"
scheme: scheme:
@ -788,6 +803,8 @@ endpoints:
hosts: hosts:
default: nova-metadata default: nova-metadata
public: metadata public: metadata
host_fqdn_overide:
default: null
path: path:
default: / default: /
scheme: scheme:
@ -801,6 +818,8 @@ endpoints:
hosts: hosts:
default: neutron-server default: neutron-server
public: neutron public: neutron
host_fqdn_overide:
default: null
path: path:
default: null default: null
scheme: scheme:

View File

@ -70,9 +70,12 @@ enabled_plugins:
erlang_cookie: openstack-cookie erlang_cookie: openstack-cookie
endpoints: endpoints:
cluster_domain_suffix: cluster.local
etcd: etcd:
hosts: hosts:
default: etcd default: etcd
host_fqdn_overide:
default: null
port: 2379 port: 2379
autocluster: autocluster:

View File

@ -17,29 +17,43 @@ limitations under the License.
{{- if .Values.manifests.ingress_api }} {{- if .Values.manifests.ingress_api }}
{{- $envAll := . }} {{- $envAll := . }}
{{- if .Values.network.api.ingress.public }} {{- if .Values.network.api.ingress.public }}
{{- $backendServiceType := "clustering" }}
{{- $backendPort := "s-api" }}
{{- $ingressName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $backendName := tuple $backendServiceType "internal" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostName := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
{{- $hostNameNamespaced := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
{{- $hostNameFull := tuple $backendServiceType "public" $envAll | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ tuple "clustering" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} name: {{ $ingressName }}
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/rewrite-target: / ingress.kubernetes.io/rewrite-target: /
spec: spec:
rules: rules:
- host: {{ tuple "clustering" "public" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} {{ if ne $hostNameNamespaced $hostNameFull }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced $hostNameFull }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "clustering" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: s-api servicePort: {{ $backendPort }}
- host: {{ tuple "clustering" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }} {{- end }}
{{- else }}
{{- range $key1, $vHost := tuple $hostName $hostNameNamespaced }}
- host: {{ $vHost }}
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: {{ tuple "clustering" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ $backendName }}
servicePort: s-api servicePort: {{ $backendPort }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -172,6 +172,7 @@ secrets:
# values, but should include all endpoints # values, but should include all endpoints
# required by this chart # required by this chart
endpoints: endpoints:
cluster_domain_suffix: cluster.local
identity: identity:
name: keystone name: keystone
auth: auth:
@ -193,6 +194,8 @@ endpoints:
hosts: hosts:
default: keystone-api default: keystone-api
public: keystone public: keystone
host_fqdn_overide:
default: null
path: path:
default: /v3 default: /v3
scheme: scheme:
@ -207,6 +210,8 @@ endpoints:
hosts: hosts:
default: senlin-api default: senlin-api
public: senlin public: senlin
host_fqdn_overide:
default: null
path: path:
default: null default: null
scheme: scheme:
@ -225,6 +230,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: mariadb default: mariadb
host_fqdn_overide:
default: null
path: /senlin path: /senlin
scheme: mysql+pymysql scheme: mysql+pymysql
port: port:
@ -233,6 +240,8 @@ endpoints:
oslo_cache: oslo_cache:
hosts: hosts:
default: memcached default: memcached
host_fqdn_overide:
default: null
port: port:
memcache: memcache:
default: 11211 default: 11211
@ -246,6 +255,8 @@ endpoints:
password: password password: password
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_overide:
default: null
path: / path: /
scheme: rabbit scheme: rabbit
port: port: