kubesphere mysql搭建与测试

发布时间 2023-07-04 16:33:06作者: 若-飞

1. 搭建

kubesphere 搭建mysql很简单,直接去应用商店找到mysql安装就可以了。

2. 搭建情况

应用:

 

服务:

工作负载: 

容器: 

保密字典: 

编辑设置找到root密码:xxxxxx

3. 测试

run一个k8s mysql客户端

bash-5.1# kubectl run -it --rm --image=mysql:5.7 --restart=Never mysql-client -- mysql -h 10.100.250.113 -u root -p123456

If you don't see a command prompt, try pressing enter.

mysql> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.00 sec)

mysql>

注意密码:之前那个-p123456是没有空格的。