k8s之PersistentVolume&PersistentVolumeClaim
- kind:PersistentVolume
- apiVersion: v1
- metadata:
- name: mysql-pv
- spec:
- capacity:
- storage:1Gi
- hostPath:
- path:/home/work/share/mysql
- type:''
- accessModes:
- -ReadWriteOnce
- claimRef:
- kind:PersistentVolumeClaim
- namespace:default
- name: mysql-pvc
- persistentVolumeReclaimPolicy:Retain
- volumeMode:Filesystem
- kind: PersistentVolumeClaim
- apiVersion: v1
- metadata:
- name: mysql-pvc
- namespace: default
- labels:
- app: mysql-pvc
- spec:
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 1Gi
- volumeName: mysql-pv
- storageClassName: standard
- volumeMode: Filesystem
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · 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 批量修改数据表编码及字符集