K8s:部署MySQL
部署mysql5.7
创建密码
echo -n "1125482715" | base64
mysql-secret.yml:
---
apiVersion: v1
kind: Secret
metadata:
name: mysql-secrets
type: Opaque
data:
ROOT_PASSWORD: MTEyNTQ4MjcxNQ==
kubectl apply -f mysql-secret.yml
欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。
echo -n "1125482715" | base64
mysql-secret.yml:
---
apiVersion: v1
kind: Secret
metadata:
name: mysql-secrets
type: Opaque
data:
ROOT_PASSWORD: MTEyNTQ4MjcxNQ==
kubectl apply -f mysql-secret.yml