码迷,mamicode.com
首页 > 数据库 > 详细

mysql-deployment

时间:2020-05-31 16:02:50      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:span   ima   ada   nta   ica   sele   select   ports   cto   

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

 

mysql-deployment

标签:span   ima   ada   nta   ica   sele   select   ports   cto   

原文地址:https://www.cnblogs.com/director/p/13018890.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!