Kubernetes Entrypoint: Lookup service names for dependency checks
The existing entrypoint logic used static names to reolve dependencies. This prevented the service names, and thus the hostnames of services being altered. This PS resolves that issue by looking up the service name from the endpoints specified in the values for a chart. Partial-Implements: blueprint enhance-entrypoint-dependency-checking External-Tracking-Id: OSH-21 Change-Id: Ib49490f332f8cd88e98c50d9335dfd314a170936
This commit is contained in:
parent
349da76076
commit
a7503a7d3f
@ -63,32 +63,39 @@ keystone:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
db_init:
|
db_init:
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- barbican-db-init
|
- barbican-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
ks_user:
|
ks_user:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_service:
|
ks_service:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_endpoints:
|
ks_endpoints:
|
||||||
jobs:
|
jobs:
|
||||||
- barbican-ks-service
|
- barbican-ks-service
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
api:
|
api:
|
||||||
jobs:
|
jobs:
|
||||||
- barbican-db-sync
|
- barbican-db-sync
|
||||||
- barbican-ks-user
|
- barbican-ks-user
|
||||||
- barbican-ks-endpoints
|
- barbican-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
paste:
|
paste:
|
||||||
@ -171,7 +178,7 @@ endpoints:
|
|||||||
amqp: 5672
|
amqp: 5672
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
|
|
||||||
|
@ -153,60 +153,75 @@ conf:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
db_init:
|
db_init:
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- cinder-db-init
|
- cinder-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
ks_user:
|
ks_user:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_service:
|
ks_service:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_endpoints:
|
ks_endpoints:
|
||||||
jobs:
|
jobs:
|
||||||
- cinder-ks-service
|
- cinder-ks-service
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
api:
|
api:
|
||||||
jobs:
|
jobs:
|
||||||
- cinder-db-sync
|
- cinder-db-sync
|
||||||
- cinder-ks-user
|
- cinder-ks-user
|
||||||
- cinder-ks-endpoints
|
- cinder-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
- keystone-api
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
bootstrap:
|
bootstrap:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
- cinder-api
|
endpoint: internal
|
||||||
|
- service: volume
|
||||||
|
endpoint: internal
|
||||||
volume:
|
volume:
|
||||||
jobs:
|
jobs:
|
||||||
- cinder-db-sync
|
- cinder-db-sync
|
||||||
- cinder-ks-user
|
- cinder-ks-user
|
||||||
- cinder-ks-endpoints
|
- cinder-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
- cinder-api
|
endpoint: internal
|
||||||
|
- service: volume
|
||||||
|
endpoint: internal
|
||||||
scheduler:
|
scheduler:
|
||||||
jobs:
|
jobs:
|
||||||
- cinder-db-sync
|
- cinder-db-sync
|
||||||
- cinder-ks-user
|
- cinder-ks-user
|
||||||
- cinder-ks-endpoints
|
- cinder-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
- cinder-api
|
endpoint: internal
|
||||||
|
- service: volume
|
||||||
|
endpoint: internal
|
||||||
backup:
|
backup:
|
||||||
jobs:
|
jobs:
|
||||||
- cinder-db-sync
|
- cinder-db-sync
|
||||||
- cinder-ks-user
|
- cinder-ks-user
|
||||||
- cinder-ks-endpoints
|
- cinder-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
- cinder-api
|
endpoint: internal
|
||||||
|
- service: volume
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
# We use a different layout of the endpoints here to account for versioning
|
# We use a different layout of the endpoints here to account for versioning
|
||||||
# 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
|
||||||
@ -284,7 +299,7 @@ endpoints:
|
|||||||
amqp: 5672
|
amqp: 5672
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
|
|
||||||
|
@ -232,54 +232,69 @@ resources:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
db_init:
|
db_init:
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- glance-db-init
|
- glance-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
bootstrap:
|
bootstrap:
|
||||||
jobs:
|
jobs:
|
||||||
- glance-db-sync
|
- glance-db-sync
|
||||||
- glance-ks-user
|
- glance-ks-user
|
||||||
- glance-ks-endpoints
|
- glance-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: identity
|
||||||
- glance-api
|
endpoint: internal
|
||||||
|
- service: image
|
||||||
|
endpoint: internal
|
||||||
ks_user:
|
ks_user:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_service:
|
ks_service:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_endpoints:
|
ks_endpoints:
|
||||||
jobs:
|
jobs:
|
||||||
- glance-ks-service
|
- glance-ks-service
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
api:
|
api:
|
||||||
jobs:
|
jobs:
|
||||||
- glance-db-sync
|
- glance-db-sync
|
||||||
- glance-ks-user
|
- glance-ks-user
|
||||||
- glance-ks-endpoints
|
- glance-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
registry:
|
registry:
|
||||||
jobs:
|
jobs:
|
||||||
- glance-db-sync
|
- glance-db-sync
|
||||||
- glance-ks-user
|
- glance-ks-user
|
||||||
- glance-ks-endpoints
|
- glance-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
- glance-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
- service: image
|
||||||
|
endpoint: internal
|
||||||
tests:
|
tests:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- glance-api
|
endpoint: internal
|
||||||
- glance-registry
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
- service: image
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
# typically overriden by environmental
|
# typically overriden by environmental
|
||||||
# values, but should include all endpoints
|
# values, but should include all endpoints
|
||||||
@ -326,7 +341,7 @@ endpoints:
|
|||||||
mysql: 3306
|
mysql: 3306
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
oslo_messaging:
|
oslo_messaging:
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.init }}
|
{{- $dependencies := .Values.dependencies.db_init }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -181,56 +181,69 @@ network:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
db_init:
|
db_init:
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- heat-db-init
|
- heat-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
ks_user:
|
ks_user:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_service:
|
ks_service:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_endpoints:
|
ks_endpoints:
|
||||||
jobs:
|
jobs:
|
||||||
- heat-ks-service
|
- heat-ks-service
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
api:
|
api:
|
||||||
jobs:
|
jobs:
|
||||||
- heat-db-sync
|
- heat-db-sync
|
||||||
- heat-ks-user
|
- heat-ks-user
|
||||||
- heat-ks-endpoints
|
- heat-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
cfn:
|
cfn:
|
||||||
jobs:
|
jobs:
|
||||||
- heat-db-sync
|
- heat-db-sync
|
||||||
- heat-ks-user
|
- heat-ks-user
|
||||||
- heat-ks-endpoints
|
- heat-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
cloudwatch:
|
cloudwatch:
|
||||||
jobs:
|
jobs:
|
||||||
- heat-db-sync
|
- heat-db-sync
|
||||||
- heat-ks-user
|
- heat-ks-user
|
||||||
- heat-ks-endpoints
|
- heat-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
engine:
|
engine:
|
||||||
jobs:
|
jobs:
|
||||||
- heat-db-sync
|
- heat-db-sync
|
||||||
- heat-ks-user
|
- heat-ks-user
|
||||||
- heat-ks-endpoints
|
- heat-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
# typically overriden by environmental
|
# typically overriden by environmental
|
||||||
# values, but should include all endpoints
|
# values, but should include all endpoints
|
||||||
@ -287,7 +300,7 @@ endpoints:
|
|||||||
mysql: 3306
|
mysql: 3306
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
oslo_messaging:
|
oslo_messaging:
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
# 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 short hostname or
|
||||||
|
# kubernetes servicename is used or relevant in the template:
|
||||||
|
# { tuple "memcache" "internal" . | include "helm-toolkit.endpoints.hostname_endpoint_lookup" }
|
||||||
|
# returns: the short internal hostname, which will also match the service name
|
||||||
|
|
||||||
|
|
||||||
|
{{- define "helm-toolkit.endpoints.hostname_endpoint_lookup" -}}
|
||||||
|
{{- $type := index . 0 -}}
|
||||||
|
{{- $endpoint := index . 1 -}}
|
||||||
|
{{- $context := index . 2 -}}
|
||||||
|
{{- $endpointMap := index $context.Values.endpoints $type }}
|
||||||
|
{{- with $endpointMap -}}
|
||||||
|
{{- $endpointScheme := .scheme }}
|
||||||
|
{{- $endpointHost := index .hosts $endpoint | default .hosts.default}}
|
||||||
|
{{- printf "%s" $endpointHost -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
@ -33,7 +33,7 @@
|
|||||||
- name: INTERFACE_NAME
|
- name: INTERFACE_NAME
|
||||||
value: eth0
|
value: eth0
|
||||||
- name: DEPENDENCY_SERVICE
|
- name: DEPENDENCY_SERVICE
|
||||||
value: "{{ include "helm-toolkit.utils.joinListWithComma" $deps.service }}"
|
value: "{{ tuple $deps.services $envAll | include "helm-toolkit.utils.comma_joined_hostname_list" }}"
|
||||||
- name: DEPENDENCY_JOBS
|
- name: DEPENDENCY_JOBS
|
||||||
value: "{{ include "helm-toolkit.utils.joinListWithComma" $deps.jobs }}"
|
value: "{{ include "helm-toolkit.utils.joinListWithComma" $deps.jobs }}"
|
||||||
- name: DEPENDENCY_DAEMONSET
|
- name: DEPENDENCY_DAEMONSET
|
||||||
|
19
helm-toolkit/templates/utils/_comma_joined_hostname_list.tpl
Normal file
19
helm-toolkit/templates/utils/_comma_joined_hostname_list.tpl
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
{{- define "helm-toolkit.utils.comma_joined_hostname_list" -}}
|
||||||
|
{{- $deps := index . 0 -}}
|
||||||
|
{{- $envAll := index . 1 -}}
|
||||||
|
{{- range $k, $v := $deps -}}{{- if $k -}},{{- end -}}{{ tuple $v.service $v.endpoint $envAll | include "helm-toolkit.endpoints.hostname_endpoint_lookup" }}{{- end -}}
|
||||||
|
{{- end -}}
|
@ -58,9 +58,11 @@ local_settings:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
dashboard:
|
dashboard:
|
||||||
service:
|
services:
|
||||||
- memcached
|
- service: oslo_cache
|
||||||
- keystone-api
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
enabled: false
|
enabled: false
|
||||||
@ -85,6 +87,11 @@ endpoints:
|
|||||||
port:
|
port:
|
||||||
admin: 35357
|
admin: 35357
|
||||||
api: 5000
|
api: 5000
|
||||||
|
oslo_cache:
|
||||||
|
hosts:
|
||||||
|
default: memcached
|
||||||
|
port:
|
||||||
|
memcache: 11211
|
||||||
|
|
||||||
mounts:
|
mounts:
|
||||||
horizon:
|
horizon:
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.init }}
|
{{- $dependencies := .Values.dependencies.db_init }}
|
||||||
{{- $mounts_keystone_db_init := .Values.mounts.keystone_db_init.keystone_db_init }}
|
{{- $mounts_keystone_db_init := .Values.mounts.keystone_db_init.keystone_db_init }}
|
||||||
{{- $mounts_keystone_db_init_init := .Values.mounts.keystone_db_init.init_container }}
|
{{- $mounts_keystone_db_init_init := .Values.mounts.keystone_db_init.init_container }}
|
||||||
|
|
||||||
|
@ -79,23 +79,29 @@ dependencies:
|
|||||||
api:
|
api:
|
||||||
jobs:
|
jobs:
|
||||||
- keystone-db-sync
|
- keystone-db-sync
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_cache
|
||||||
- memcached
|
endpoint: internal
|
||||||
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
|
db_init:
|
||||||
|
services:
|
||||||
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- keystone-db-init
|
- keystone-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
init:
|
endpoint: internal
|
||||||
service:
|
|
||||||
- mariadb
|
|
||||||
tests:
|
tests:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
bootstrap:
|
bootstrap:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
enabled: false
|
enabled: false
|
||||||
@ -225,6 +231,6 @@ endpoints:
|
|||||||
amqp: 5672
|
amqp: 5672
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.init }}
|
{{- $dependencies := .Values.dependencies.db_init }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -102,40 +102,49 @@ network:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
db_init:
|
db_init:
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- magnum-db-init
|
- magnum-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
ks_user:
|
ks_user:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_service:
|
ks_service:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_endpoints:
|
ks_endpoints:
|
||||||
jobs:
|
jobs:
|
||||||
- magnum-ks-service
|
- magnum-ks-service
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
api:
|
api:
|
||||||
jobs:
|
jobs:
|
||||||
- magnum-db-sync
|
- magnum-db-sync
|
||||||
- magnum-ks-user
|
- magnum-ks-user
|
||||||
- magnum-ks-endpoints
|
- magnum-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
conductor:
|
conductor:
|
||||||
jobs:
|
jobs:
|
||||||
- magnum-db-sync
|
- magnum-db-sync
|
||||||
- magnum-ks-user
|
- magnum-ks-user
|
||||||
- magnum-ks-endpoints
|
- magnum-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
# typically overriden by environmental
|
# typically overriden by environmental
|
||||||
# values, but should include all endpoints
|
# values, but should include all endpoints
|
||||||
@ -174,7 +183,7 @@ endpoints:
|
|||||||
mysql: 3306
|
mysql: 3306
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
oslo_messaging:
|
oslo_messaging:
|
||||||
|
@ -86,56 +86,69 @@ network:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
db_init:
|
db_init:
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- mistral-db-init
|
- mistral-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
ks_user:
|
ks_user:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_service:
|
ks_service:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_endpoints:
|
ks_endpoints:
|
||||||
jobs:
|
jobs:
|
||||||
- mistral-ks-service
|
- mistral-ks-service
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
api:
|
api:
|
||||||
jobs:
|
jobs:
|
||||||
- mistral-db-sync
|
- mistral-db-sync
|
||||||
- mistral-ks-user
|
- mistral-ks-user
|
||||||
- mistral-ks-endpoints
|
- mistral-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
engine:
|
engine:
|
||||||
jobs:
|
jobs:
|
||||||
- mistral-db-sync
|
- mistral-db-sync
|
||||||
- mistral-ks-user
|
- mistral-ks-user
|
||||||
- mistral-ks-endpoints
|
- mistral-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
event_engine:
|
event_engine:
|
||||||
jobs:
|
jobs:
|
||||||
- mistral-db-sync
|
- mistral-db-sync
|
||||||
- mistral-ks-user
|
- mistral-ks-user
|
||||||
- mistral-ks-endpoints
|
- mistral-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
executor:
|
executor:
|
||||||
jobs:
|
jobs:
|
||||||
- mistral-db-sync
|
- mistral-db-sync
|
||||||
- mistral-ks-user
|
- mistral-ks-user
|
||||||
- mistral-ks-endpoints
|
- mistral-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
# typically overriden by environmental
|
# typically overriden by environmental
|
||||||
# values, but should include all endpoints
|
# values, but should include all endpoints
|
||||||
@ -188,7 +201,7 @@ endpoints:
|
|||||||
amqp: 5672
|
amqp: 5672
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
|
|
||||||
|
@ -134,57 +134,77 @@ ml2:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
db_init:
|
db_init:
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- neutron-db-init
|
- neutron-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
ks_user:
|
ks_user:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_service:
|
ks_service:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_endpoints:
|
ks_endpoints:
|
||||||
jobs:
|
jobs:
|
||||||
- neutron-ks-service
|
- neutron-ks-service
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
server:
|
server:
|
||||||
jobs:
|
jobs:
|
||||||
- neutron-db-sync
|
- neutron-db-sync
|
||||||
- neutron-ks-user
|
- neutron-ks-user
|
||||||
- neutron-ks-endpoints
|
- neutron-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- rabbitmq
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
- keystone-api
|
- service: oslo_messaging
|
||||||
- memcached
|
endpoint: internal
|
||||||
|
- service: oslo_cache
|
||||||
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
dhcp:
|
dhcp:
|
||||||
service:
|
services:
|
||||||
- rabbitmq
|
- service: oslo_messaging
|
||||||
- neutron-server
|
endpoint: internal
|
||||||
- nova-api
|
- service: network
|
||||||
|
endpoint: internal
|
||||||
|
- service: compute
|
||||||
|
endpoint: internal
|
||||||
daemonset:
|
daemonset:
|
||||||
- ovs-agent
|
- ovs-agent
|
||||||
metadata:
|
metadata:
|
||||||
service:
|
services:
|
||||||
- rabbitmq
|
- service: oslo_messaging
|
||||||
- neutron-server
|
endpoint: internal
|
||||||
- nova-api
|
- service: network
|
||||||
|
endpoint: internal
|
||||||
|
- service: compute
|
||||||
|
endpoint: internal
|
||||||
daemonset:
|
daemonset:
|
||||||
- ovs-agent
|
- ovs-agent
|
||||||
ovs_agent:
|
ovs_agent:
|
||||||
service:
|
services:
|
||||||
- rabbitmq
|
- service: oslo_messaging
|
||||||
- neutron-server
|
endpoint: internal
|
||||||
|
- service: network
|
||||||
|
endpoint: internal
|
||||||
l3:
|
l3:
|
||||||
service:
|
services:
|
||||||
- rabbitmq
|
- service: oslo_messaging
|
||||||
- neutron-server
|
endpoint: internal
|
||||||
- nova-api
|
- service: network
|
||||||
|
endpoint: internal
|
||||||
|
- service: compute
|
||||||
|
endpoint: internal
|
||||||
daemonset:
|
daemonset:
|
||||||
- ovs-agent
|
- ovs-agent
|
||||||
|
|
||||||
@ -462,7 +482,7 @@ endpoints:
|
|||||||
amqp: 5672
|
amqp: 5672
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
compute:
|
compute:
|
||||||
|
@ -147,60 +147,94 @@ dependencies:
|
|||||||
- nova-db-sync
|
- nova-db-sync
|
||||||
- nova-ks-user
|
- nova-ks-user
|
||||||
- nova-ks-endpoints
|
- nova-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_messaging
|
||||||
|
endpoint: internal
|
||||||
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
db_init:
|
db_init:
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- nova-db-init
|
- nova-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
bootstrap:
|
bootstrap:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
- nova-api
|
endpoint: internal
|
||||||
|
- service: compute
|
||||||
|
endpoint: internal
|
||||||
ks_user:
|
ks_user:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_service:
|
ks_service:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_endpoints:
|
ks_endpoints:
|
||||||
jobs:
|
jobs:
|
||||||
- nova-ks-service
|
- nova-ks-service
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
compute:
|
compute:
|
||||||
jobs:
|
jobs:
|
||||||
- nova-db-sync
|
- nova-db-sync
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_messaging
|
||||||
- nova-api
|
endpoint: internal
|
||||||
|
- service: compute
|
||||||
|
endpoint: internal
|
||||||
|
- service: network
|
||||||
|
endpoint: internal
|
||||||
daemonset:
|
daemonset:
|
||||||
- ovs-agent
|
- ovs-agent
|
||||||
libvirt:
|
libvirt:
|
||||||
jobs:
|
jobs:
|
||||||
- nova-db-sync
|
- nova-db-sync
|
||||||
service:
|
|
||||||
- keystone-api
|
|
||||||
- nova-api
|
|
||||||
consoleauth:
|
consoleauth:
|
||||||
jobs:
|
jobs:
|
||||||
- nova-db-sync
|
- nova-db-sync
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_messaging
|
||||||
|
endpoint: internal
|
||||||
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
- service: compute
|
||||||
|
endpoint: internal
|
||||||
scheduler:
|
scheduler:
|
||||||
jobs:
|
jobs:
|
||||||
- nova-db-sync
|
- nova-db-sync
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_messaging
|
||||||
|
endpoint: internal
|
||||||
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
- service: compute
|
||||||
|
endpoint: internal
|
||||||
conductor:
|
conductor:
|
||||||
jobs:
|
jobs:
|
||||||
- nova-db-sync
|
- nova-db-sync
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_messaging
|
||||||
|
endpoint: internal
|
||||||
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
- service: compute
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
mounts:
|
mounts:
|
||||||
nova_compute:
|
nova_compute:
|
||||||
@ -393,7 +427,7 @@ endpoints:
|
|||||||
amqp: 5672
|
amqp: 5672
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
compute:
|
compute:
|
||||||
|
@ -75,5 +75,6 @@ probes_delay: 180
|
|||||||
probes_timeout: 10
|
probes_timeout: 10
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
service:
|
services:
|
||||||
- etcd
|
- service: etcd
|
||||||
|
endpoint: internal
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.init }}
|
{{- $dependencies := .Values.dependencies.db_init }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -103,40 +103,49 @@ network:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
db_init:
|
db_init:
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
db_sync:
|
db_sync:
|
||||||
jobs:
|
jobs:
|
||||||
- senlin-db-init
|
- senlin-db-init
|
||||||
service:
|
services:
|
||||||
- mariadb
|
- service: oslo_db
|
||||||
|
endpoint: internal
|
||||||
ks_user:
|
ks_user:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_service:
|
ks_service:
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
ks_endpoints:
|
ks_endpoints:
|
||||||
jobs:
|
jobs:
|
||||||
- senlin-ks-service
|
- senlin-ks-service
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
api:
|
api:
|
||||||
jobs:
|
jobs:
|
||||||
- senlin-db-sync
|
- senlin-db-sync
|
||||||
- senlin-ks-user
|
- senlin-ks-user
|
||||||
- senlin-ks-endpoints
|
- senlin-ks-endpoints
|
||||||
service:
|
services:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
engine:
|
engine:
|
||||||
jobs:
|
jobs:
|
||||||
- senlin-db-sync
|
- senlin-db-sync
|
||||||
- senlin-ks-user
|
- senlin-ks-user
|
||||||
- senlin-ks-endpoints
|
- senlin-ks-endpoints
|
||||||
service:
|
servics:
|
||||||
- keystone-api
|
- service: oslo_db
|
||||||
- mariadb
|
endpoint: internal
|
||||||
|
- service: identity
|
||||||
|
endpoint: internal
|
||||||
|
|
||||||
# typically overriden by environmental
|
# typically overriden by environmental
|
||||||
# values, but should include all endpoints
|
# values, but should include all endpoints
|
||||||
@ -175,7 +184,7 @@ endpoints:
|
|||||||
mysql: 3306
|
mysql: 3306
|
||||||
oslo_cache:
|
oslo_cache:
|
||||||
hosts:
|
hosts:
|
||||||
default: memcache
|
default: memcached
|
||||||
port:
|
port:
|
||||||
memcache: 11211
|
memcache: 11211
|
||||||
oslo_messaging:
|
oslo_messaging:
|
||||||
|
Loading…
Reference in New Issue
Block a user