mysql-deployment
apiVersion: apps/v1 kind: Deployment metadata: name: mysql2 spec: replicas: 1 selector: matchLabels: app: mysql2 template: metadata: labels: app: mysql2 spec: containers: - name: mysql2 image: mysql:5.7 volumeMounts: - name: mysql mountPath: /var/lib/mysql/ env: - name: MYSQL_ROOT_PASSWORD value: mysql ports: - containerPort: 3306 volumes: - name: mysql hostPath: path: /mysql
posted on 2020-05-31 14:57 __director 阅读(312) 评论(0) 编辑 收藏 举报