在docker我可以用 command: --default-authentication-plugin=mysql_native_password 在 docker-compose 文件。在创建mysql部署时如何传递这个消息?我正在使用mysql8
command: --default-authentication-plugin=mysql_native_password
docker-compose
iq3niunx1#
可能是这样的:
apiVersion: apps/v1 kind: Deployment metadata: name: mysql-deployment labels: app: mysql spec: replicas: 1 selector: matchLabels: app: mysql template: metadata: labels: app: mysql spec: containers: - name: mysql image: mysql:8 env: - name: MYSQL_ROOT_PASSWORD value: XXXXXXXXXXXXXXXX args: ["--default-authentication-plugin=mysql_native_password"] ports: - containerPort: 3306
1条答案
按热度按时间iq3niunx1#
可能是这样的: