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

iis网站中文建网站

iis网站,中文建网站,5 网站建设进度表,做淘客网站要多大的服务器rook-ceph安装部署到位后#xff0c;就可以开始来尝试使用StorageClass来动态创建pv了。 有状态的中间件在kubernetes上落地基本上都会用到StorageClass来动态创建pv#xff08;对于云上应用没有那么多烦恼#xff0c;云硬盘很好用#xff0c;但是对于自己学习和练习来说还…rook-ceph安装部署到位后就可以开始来尝试使用StorageClass来动态创建pv了。 有状态的中间件在kubernetes上落地基本上都会用到StorageClass来动态创建pv对于云上应用没有那么多烦恼云硬盘很好用但是对于自己学习和练习来说还是Ceph更加靠谱这里小试一试动态创建pv的威力为后续用它来玩转redis、zookeeper、elasticsearch做准备。 1、创建 StorageClass和存储池 kubectl create -f rook/deploy/examples/csi/rbd/storageclass.yaml 查看创建的cephblockpool和StorageClass kubectl get cephblockpool -n rook-ceph kubectl get sc 结果如下 rook/deploy/examples/csi/rbd/storageclass.yaml内容如下 apiVersion: ceph.rook.io/v1 kind: CephBlockPool metadata:name: replicapoolnamespace: rook-ceph # namespace:cluster spec:failureDomain: hostreplicated:size: 2# Disallow setting pool with replica 1, this could lead to data loss without recovery.# Make sure youre *ABSOLUTELY CERTAIN* that is what you wantrequireSafeReplicaSize: true# gives a hint (%) to Ceph in terms of expected consumption of the total cluster capacity of a given pool# for more info: https://docs.ceph.com/docs/master/rados/operations/placement-groups/#specifying-expected-pool-size#targetSizeRatio: .5 --- apiVersion: storage.k8s.io/v1 kind: StorageClass metadata:name: rook-ceph-block # Change rook-ceph provisioner prefix to match the operator namespace if needed provisioner: rook-ceph.rbd.csi.ceph.com parameters:# clusterID is the namespace where the rook cluster is running# If you change this namespace, also change the namespace below where the secret namespaces are definedclusterID: rook-ceph # namespace:cluster# If you want to use erasure coded pool with RBD, you need to create# two pools. one erasure coded and one replicated.# You need to specify the replicated pool here in the pool parameter, it is# used for the metadata of the images.# The erasure coded pool must be set as the dataPool parameter below.#dataPool: ec-data-poolpool: replicapool# (optional) mapOptions is a comma-separated list of map options.# For krbd options refer# https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options# For nbd options refer# https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options# mapOptions: lock_on_read,queue_depth1024# (optional) unmapOptions is a comma-separated list of unmap options.# For krbd options refer# https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options# For nbd options refer# https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options# unmapOptions: force# (optional) Set it to true to encrypt each volume with encryption keys# from a key management system (KMS)# encrypted: true# (optional) Use external key management system (KMS) for encryption key by# specifying a unique ID matching a KMS ConfigMap. The ID is only used for# correlation to configmap entry.# encryptionKMSID: kms-config-id# RBD image format. Defaults to 2.imageFormat: 2# RBD image features# Available for imageFormat: 2. Older releases of CSI RBD# support only the layering feature. The Linux kernel (KRBD) supports the# full complement of features as of 5.4# layering alone corresponds to Cephs bitfield value of 2 ;# layering fast-diff object-map deep-flatten exclusive-lock together# correspond to Cephs ORd bitfield value of 63. Here we use# a symbolic, comma-separated format:# For 5.4 or later kernels:#imageFeatures: layering,fast-diff,object-map,deep-flatten,exclusive-lock# For 5.3 or earlier kernels:imageFeatures: layering# The secrets contain Ceph admin credentials. These are generated automatically by the operator# in the same namespace as the cluster.csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisionercsi.storage.k8s.io/provisioner-secret-namespace: rook-ceph # namespace:clustercsi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisionercsi.storage.k8s.io/controller-expand-secret-namespace: rook-ceph # namespace:clustercsi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-nodecsi.storage.k8s.io/node-stage-secret-namespace: rook-ceph # namespace:cluster# Specify the filesystem type of the volume. If not specified, csi-provisioner# will set default as ext4. Note that xfs is not recommended due to potential deadlock# in hyperconverged settings where the volume is mounted on the same node as the osds.csi.storage.k8s.io/fstype: ext4 # uncomment the following to use rbd-nbd as mounter on supported nodes # **IMPORTANT**: CephCSI v3.4.0 onwards a volume healer functionality is added to reattach # the PVC to application pod if nodeplugin pod restart. # Its still in Alpha support. Therefore, this option is not recommended for production use. #mounter: rbd-nbd allowVolumeExpansion: true reclaimPolicy: Delete 2、创nginx的StatefulSet通过storageclass来动态创建pv绑定到 /usr/share/nginx/html    有状态的Pod,每个Pod都要有自己的pv。    对于redis、zookeeper、elasticsearch来说都会使用到storageClass来动态创建pv。 kubectl apply -f test_volumnClainTemplates.yaml  查看命令如下 kubectl get po -l appnginx kubectl get pvc 结果如下 test_volumnClainTemplates.yaml的内容如下 apiVersion: v1 kind: Service metadata:name: nginxlabels:app: nginx spec:ports:- port: 80name: webclusterIP: Noneselector:app: nginx --- apiVersion: apps/v1 kind: StatefulSet metadata:name: web spec:selector:matchLabels:app: nginxserviceName: nginxreplicas: 2 template:metadata: labels:app: nginxspec:terminationGracePeriodSeconds: 10 containers:- name: nginx image: nginx ports:- containerPort: 80 name: webvolumeMounts:- name: wwwmountPath: /usr/share/nginx/htmlvolumeClaimTemplates:- metadata:name: www spec:accessModes: [ ReadWriteOnce ] storageClassName: rook-ceph-blockresources:requests:storage: 200M
http://www.dnsts.com.cn/news/19766.html

相关文章:

  • 交易平台网站制作网站访问速度分析
  • 网站开发需求规格说明书小程序商城怎么推广引流
  • 上海网站排名公司做网站怎么给图片加连接
  • 网站开发专家:php+mysql网站开发技术与典型案例导航广州建设信息网
  • 做一个京东网站怎么做中企网站案例
  • 珠海培训网站建设长沙景点免费
  • 爱站工具的功能农村自建房设计图一层平房
  • 网站用户界面ui设计细节网站有收录就会排名吗
  • 广州建设网站企业招投标信息查询平台
  • 免费手机网站制作wordpress商城对接支付接口
  • 建设网站哪里好平面设计职业学校
  • 南宁营销型网站建设公司哪家好建筑建材网站建设
  • wordpress好看的模板网站图片如何优化
  • 柳州建设网站经济适用房表格WordPress与其它
  • 做论坛网站wordpress图片使用图床
  • 塔里木油田公司档案馆网站建设研究彩票代理平台
  • 从事建站业务还有前景吗一件代发的货源怎么找
  • 做一个响应网站多少钱英文搜索网站
  • 个人可以做行业网站吗已经备案的域名做电影网站
  • 重庆建设局网站长春网站如何制作
  • 庆阳网站设计厂家品牌推广活动
  • 微网站建设86215网站关键词优化到首页难度
  • 哪有做奇石网站wordpress标签页固定连接以.html后缀结尾
  • 厦门网站设计制作校园网站建设素材
  • 公司介绍网站怎么做的我有域名和云服务器怎么做网站
  • 做网站一般使用什么算法专线网站建设
  • 如何将vs做的网站备份出来三站合一网站建设方案
  • pcms网站开发学ui去哪个机构比较好
  • 项目经理网站开发流程wordpress导航菜单添加图标
  • 大连做网站一般给多大空间国外做贸易网站