k8s之ReplicationController
- kind: ReplicationController
- apiVersion: v1
- metadata:
- name: mysql-rc
- namespace: default
- uid: 946f2c6a-f7ac-4412-b3c9-3741fe668717
- resourceVersion: '1299573'
- generation: 3
- creationTimestamp: '2021-05-17T09:16:19Z'
- labels:
- name: mysql-rc
- spec:
- replicas: 1
- selector:
- name: mysql-pod
- template:
- metadata:
- labels:
- name: mysql-pod
- spec:
- volumes:
- - name: mysql-storage
- persistentVolumeClaim:
- claimName: mysql-pvc
- - name: config
- configMap:
- name: mysql-config
- - name: localtime
- hostPath:
- path: /etc/localtime
- type: File
- containers:
- - name: mysql
- image: 'mysql:5.7'
- ports:
- - containerPort: 3306
- protocol: TCP
- env:
- - name: MYSQL_ROOT_PASSWORD
- value: mysql
- resources: {}
- volumeMounts:
- - name: mysql-storage
- mountPath: /var/lib/mysql
- - name: config
- mountPath: /etc/mysql/conf.d/my.cnf
- subPath: my.cnf
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · docker定时任务Mysql脚本
- · docker安装mysql8注意事项
- · .NET8 Mysql SSL error
- · Linux安装NFS
- · k3s+kuboard快速搭建K8s生产环境集群
- · 定时备份docker中的mysql
- · 部署docker+k3s+rancher2
- · 部署k3s+KubeSphere
- · es+filebeat+elastalert2实现异常邮件提醒
- · docker-compose通过容器名连接mysql
- · unity3d mysql error: The given key was not present in the dictionary.
- · MySQL 批量修改数据表编码及字符集