[mariadb] Avoid using cluster endpoints
Switch to namespaced based endpoints to remove requirement configure kubernetes internal cluster domain name which can't be get from kubernetes API. Change-Id: I8808153a83e3cec588765797d66d728bb6133a5c
This commit is contained in:
parent
10fca14997
commit
32b571ab2f
@ -15,7 +15,7 @@ apiVersion: v1
|
|||||||
appVersion: v10.6.7
|
appVersion: v10.6.7
|
||||||
description: OpenStack-Helm MariaDB
|
description: OpenStack-Helm MariaDB
|
||||||
name: mariadb
|
name: mariadb
|
||||||
version: 0.2.45
|
version: 0.2.46
|
||||||
home: https://mariadb.com/kb/en/
|
home: https://mariadb.com/kb/en/
|
||||||
icon: http://badges.mariadb.org/mariadb-badge-180x60.png
|
icon: http://badges.mariadb.org/mariadb-badge-180x60.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
[client]
|
[client]
|
||||||
user = {{ .Values.endpoints.oslo_db.auth.exporter.username }}
|
user = {{ .Values.endpoints.oslo_db.auth.exporter.username }}
|
||||||
password = {{ .Values.endpoints.oslo_db.auth.exporter.password }}
|
password = {{ .Values.endpoints.oslo_db.auth.exporter.password }}
|
||||||
host = {{ tuple "oslo_db" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
|
host = {{ tuple "oslo_db" "internal" . | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
|
||||||
port = {{ tuple "oslo_db" "direct" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
port = {{ tuple "oslo_db" "direct" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
{{- if .Values.manifests.certificates }}
|
{{- if .Values.manifests.certificates }}
|
||||||
ssl-ca = /etc/mysql/certs/ca.crt
|
ssl-ca = /etc/mysql/certs/ca.crt
|
||||||
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
[client]
|
[client]
|
||||||
user = {{ .Values.endpoints.oslo_db.auth.admin.username }}
|
user = {{ .Values.endpoints.oslo_db.auth.admin.username }}
|
||||||
password = {{ .Values.endpoints.oslo_db.auth.admin.password }}
|
password = {{ .Values.endpoints.oslo_db.auth.admin.password }}
|
||||||
host = {{ tuple "oslo_db" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
|
host = {{ tuple "oslo_db" "internal" . | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
|
||||||
port = {{ tuple "oslo_db" "internal" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
port = {{ tuple "oslo_db" "internal" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
{{- if .Values.manifests.certificates }}
|
{{- if .Values.manifests.certificates }}
|
||||||
ssl-ca = /etc/mysql/certs/ca.crt
|
ssl-ca = /etc/mysql/certs/ca.crt
|
||||||
|
@ -181,7 +181,7 @@ spec:
|
|||||||
- name: POD_NAME_PREFIX
|
- name: POD_NAME_PREFIX
|
||||||
value: {{ tuple "oslo_db" "direct" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
value: {{ tuple "oslo_db" "direct" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||||
- name: DISCOVERY_DOMAIN
|
- name: DISCOVERY_DOMAIN
|
||||||
value: {{ tuple "oslo_db" "discovery" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
|
value: {{ tuple "oslo_db" "discovery" . | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
|
||||||
- name: DIRECT_SVC_NAME
|
- name: DIRECT_SVC_NAME
|
||||||
value: {{ tuple "oslo_db" "direct" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
value: {{ tuple "oslo_db" "direct" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||||
- name: WSREP_PORT
|
- name: WSREP_PORT
|
||||||
|
@ -61,4 +61,5 @@ mariadb:
|
|||||||
- 0.2.43 Add 2024.1 Ubuntu Jammy overrides
|
- 0.2.43 Add 2024.1 Ubuntu Jammy overrides
|
||||||
- 0.2.44 Uplift ingress controller image to 1.11.2
|
- 0.2.44 Uplift ingress controller image to 1.11.2
|
||||||
- 0.2.45 Add mariadb controller support
|
- 0.2.45 Add mariadb controller support
|
||||||
|
- 0.2.46 Avoid using cluster endpoints
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user