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
kubectl get secret
kubectl describe secret mysql-secrets