当前位置: 首页 > news >正文

哈尔滨网站建设代理商比wordpress好

哈尔滨网站建设代理商,比wordpress好,网站怎么seo,广告设计网站素材kubernetes资源——pv/pvc持久卷 一、volume数据卷1、hostPath2、挂载nfs实现持久化 二、pv/pvc 持久卷/持久卷声明1、pv/pvc介绍2、pv/pvc的使用流程2.1 创建pv2.2 创建pvc2.3 创建pod#xff0c;使用pv做持久化 一、volume数据卷 用于pod中的数据的持久化存储 支持很多的卷… kubernetes资源——pv/pvc持久卷 一、volume数据卷1、hostPath2、挂载nfs实现持久化 二、pv/pvc 持久卷/持久卷声明1、pv/pvc介绍2、pv/pvc的使用流程2.1 创建pv2.2 创建pvc2.3 创建pod使用pv做持久化 一、volume数据卷 用于pod中的数据的持久化存储 支持很多的卷类型, 例如EmptyDir、hostPath、NAS、SAN、CEPH 1、hostPath 挂载物理机上的目录做持久化 apiVersion: apps/v1 kind: Deployment metadata:name: test1-hostpath spec:replicas: 1selector:matchLabels:app: hostpathtemplate:metadata:labels:app: hostpathspec:containers:- name: test1-hostpathimage: centos:7imagePullPolicy: IfNotPresentcommand:- sleep- 3600volumeMounts: // 挂载卷- name: test1-volumemountPath: /test1volumes: // 创建卷名称为test1-volume 类型为hostpath- name: test1-volumehostPath:path: /test/data[rootk8s-master ~]# kubectl get pod -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES test1-hostpath-584f599fcf-wzt2q 1/1 Running 0 117s 10.88.201.193 k8s-node01.linux.com none none [rootk8s-master ~]# [rootk8s-master ~]# kubectl exec -ti test1-hostpath-584f599fcf-wzt2q bash kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead. [roottest1-hostpath-584f599fcf-wzt2q /]# [roottest1-hostpath-584f599fcf-wzt2q /]# touch /test1/{1..10} [roottest1-hostpath-584f599fcf-wzt2q /]# ls /test1/ 1 10 2 3 4 5 6 7 8 9 [roottest1-hostpath-584f599fcf-wzt2q /]# [roottest1-hostpath-584f599fcf-wzt2q /]# exit exit2、挂载nfs实现持久化 apiVersion: apps/v1 kind: Deployment metadata:name: test2-pod-nfs spec:replicas: 1selector:matchLabels:app: nfstemplate:metadata:labels:app: nfsspec:containers:- name: test2-pod-nfsimage: centos:7imagePullPolicy: IfNotPresentcommand:- sleep- 3600volumeMounts:- name: test2-nfs-volumemountPath: /test2volumes:- name: test2-nfs-volumenfs:server: 192.168.140.13path: /test2二、pv/pvc 持久卷/持久卷声明 1、pv/pvc介绍 pv 持久卷后端真实存储空间的映射 pvc 持久卷声明使用存储的申请 使用流程: 1、创建pv描述后端真实的存储空间 2、创建pvc描述使用存储的申请 3、创建pod挂载pvc使用存储 2、pv/pvc的使用流程 2.1 创建pv apiVersion: v1 kind: PersistentVolume metadata:name: pv-2g spec:capacity:storage: 2GaccessModes:- ReadWriteManypersistentVolumeReclaimPolicy: Recyclenfs:server: 192.168.140.13path: /test6apiVersion: v1 kind: PersistentVolume metadata:name: pv-3g spec:capacity:storage: 3GaccessModes:- ReadWriteOncepersistentVolumeReclaimPolicy: Recyclenfs:server: 192.168.140.13path: /test7accessModes用于指定PV的访问模式共有四种 ReadWriteOnce 被单个节点以读写模式挂载 ReadWriteMany 被多个节点以读写模式挂载 ReadOnlyMany 被多个节点以只读模式挂载 ReadOnlyOnce, k8s 1.29 被单节点以只读模式挂载 persistentVolumeReclaimPolicy: 指定回收模式是自动回收当空间被释放时K8S自动清理然后可以继续绑定使用 [rootk8s-master pvTest]# kubectl get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS VOLUMEATTRIBUTESCLASS REASON AGE pv-2g 2G RWX Recycle Available unset 2m26s pv-3g 3G RWO Recycle Available unset 46s2.2 创建pvc apiVersion: v1 kind: PersistentVolumeClaim metadata:name: pvc-1g spec:accessModes:- ReadWriteManyresources:requests:storage: 1G[rootk8s-master pvTest]# kubectl get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE pvc-1g Bound pv-2g 2G RWX unset 10sbash [rootk8s-master pvTest]# kubectl get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS VOLUMEATTRIBUTESCLASS REASON AGE pv-2g 2G RWX Recycle Bound default/pvc-1g unset 10m pv-3g 3G RWO Recycle Available unset 8m34s2.3 创建pod使用pv做持久化 apiVersion: apps/v1 kind: Deployment metadata:name: test1-pod spec:replicas: 1selector:matchLabels:app: pvtemplate:metadata:labels:app: pvspec:containers:- name: test1-podimage: centos:7imagePullPolicy: IfNotPresentcommand:- sleep- 3600volumeMounts:- name: test1-pod-pv-volumemountPath: /test1volumes:- name: test1-pod-pv-volumepersistentVolumeClaim: // 通过关联pvc创建数据卷claimName: pvc-1g
http://www.hkea.cn/news/14435449/

相关文章:

  • 于都建设银行网站招聘网站打广告
  • 中金超钒 网站建设企业做网站步骤
  • 汉鼎网站建设时尚工作室网站源码
  • 企业形象网站解决方案扬州北京网站建设
  • 网站建设技术手段网站建设进无形资产的规定
  • 制作网站的appwordpress wap跳转
  • 做网站主页上主要放哪些内容手机wordpress怎么安装
  • 做网站 源码宁晋网站开发
  • 无锡网站制作启电脑上自己做科目一的网站
  • 查企业去哪个网站企业网站无锡
  • 黄冈工程建设标准造价信息网优化网站排名方法教程
  • 网站开发建设书籍推荐怎么删掉安装的wordpress
  • 海口专业网站搭建厂网站开发及代运营
  • 怎样做科普视频网站邢台做移动网站
  • 河源公司做网站建站公司一般怎么获客
  • 家装e站头像制作免费生成器
  • 域名网站建设方案基础展示型网站和cms
  • 北京营销型网站建设多少钱南宁微网站制作
  • 网站模板asp手机网站字体自适应
  • 避免网站侵权网站推广手段有哪些
  • 营销型网站建设答辩django 电商网站开发
  • 深圳福田网站建设公司哪家好大连甘井子区二手房
  • 做建材的网站58同城找工作 招聘
  • 优秀网站的颜色搭配wordpress 作品展
  • 网站备案证明教育网站赏析
  • 社区微网站建设需求分析优帮云排名自动扣费
  • 淘宝不能发布网站开发了网站优化推广公司
  • 国内做网站建设知名的公司没效果
  • 用cms建设网站课程宅门网络营销网站规划建设实训作业
  • 做网站要考虑哪些因素做一个企业网站多少钱