k8s mysql cluster

install

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
─❯ helm install -f ./mysql-operator/values.yaml -name mysql-operator --namespace mysql-operator  --create-namespace  ./mysql-operator



❯ helm install mycluster ./mysql-innodbcluster \
--namespace mysql-operator \
--set tls.useSelfSigned=true \
--set credentials.root.user='root' \
--set credentials.root.password='cs@123456' \
--set credentials.root.host='%' \
--set serverInstances=3 \
--set routerInstances=1



❯ helm uninstall -name mycluster --namespace mysql-operator
release "mycluster" uninstalled
❯ helm uninstall -name mysql-operator --namespace mysql-operator
release "mysql-operator" uninstalled

❯ kubectl logs mysql-operator-9d99d7fb4-slm2p -n mysql-operator
2023-08-31 10:45:24: Info: mysqlsh Ver 8.1.0 for Linux on x86_64 - for MySQL 8.1.0 (MySQL Community Server (GPL)) - build 11806291 - commit_id aa072a78647c21a540e40b8bdd04420e6efbe677
2023-08-31 10:45:24: Info: Using credential store helper: /usr/bin/mysql-secret-store-login-path
2023-08-31 10:45:24: Info: Loading startup files…
2023-08-31 10:45:24: Info: Loading plugins…
[2023-08-31 10:45:26,726] root [WARNING ] Failed to detect cluster domain. Reason: [Errno 2] Host name lookup failure
….
[2023-08-31 10:45:54,977] root [WARNING ] Failed to detect cluster domain. Reason: [Errno 2] Host name lookup failure
[2023-08-31 10:45:56,979] root [ERROR ] Failed to automatically identify the cluster domain. If this
persists try setting MYSQL_OPERATOR_K8S_CLUSTER_DOMAIN via environment.

radondb-mysql-kubernetes

1
2
3
❯ helm repo add radondb https://radondb.github.io/radondb-mysql-kubernetes/
"radondb" has been added to your repositories
❯ helm pull radondb/mysql-operator --untar

Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: [resource mapping not found for name: “radondb-mysql-certificate” namespace: “default” from “”: no matches for kind “Certificate” in version “cert-manager.io/v1”
ensure CRDs are installed first, resource mapping not found for name: “radondb-mysql-issuer” namespace: “default” from “”: no matches for kind “Issuer” in version “cert-manager.io/v1”
ensure CRDs are installed first]

点击打赏
文章目录
  1. 1. install
  2. 2. radondb-mysql-kubernetes
载入天数...载入时分秒... ,