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

网站分享按钮关键词排名优化易下拉软件

网站分享按钮,关键词排名优化易下拉软件,wordpress the7 教程,网站怎么做登陆#作者:任少近 文章目录 1 Ceph环境准备2 rook部署ceph群集2.1 Rook 帮助地址2.2 安装ceph2.3 获取csi镜像2.4 Master参加到osd2.5 设置默认存储 3 Rook部署云原生RBD块存储3.1 部署storageclass资源3.2 部署WordPress使用RBD3.3 WordPress访问 4 Rook部署云原生RGW…

#作者:任少近

文章目录

  • 1 Ceph环境准备
  • 2 rook部署ceph群集
    • 2.1 Rook 帮助地址
    • 2.2 安装ceph
    • 2.3 获取csi镜像
    • 2.4 Master参加到osd
    • 2.5 设置默认存储
  • 3 Rook部署云原生RBD块存储
    • 3.1 部署storageclass资源
    • 3.2 部署WordPress使用RBD
    • 3.3 WordPress访问
  • 4 Rook部署云原生RGW对象存储
    • 4.1 部署objectstore资源
    • 4.2 pod访问rgw服务
    • 4.3创建rgw用户
    • 4.4创建buckets桶
  • 5 DeRook部署云原生CephFS文件系统
    • 5.1 部署cephfs storageclass
    • 5.2 创建容器所需cephfs文件系统
    • 5.3创建容器pod使用rook-cephfs提供pvc

1 Ceph环境准备

提前准备一块50G祼盘
在这里插入图片描述
版本
在这里插入图片描述

2 rook部署ceph群集

下载rook
https://rook.io/docs/rook

git clone --single-branch --branch v1.11.5 https://github.com/rook/rook.git# verify the rook-ceph-operator is in the `Running` state before proceeding
kubectl -n rook-ceph get pod

2.1 Rook 帮助地址

https://rook.io/docs/rook/v1.9/ceph-filesystem.html

2.2 安装ceph

cd /root/rook/deploy/examples
kubectl create -f crds.yaml -f common.yaml -f operator.yaml

2.3 获取csi镜像

成功后,执行cluster.yaml后,插件未启,修改operater.yaml中地址

# ROOK_CSI_REGISTRAR_IMAGE: "registry.aliyuncs.com/google_containers/csi-node-driver-registrar:v2.7.0"
# ROOK_CSI_RESIZER_IMAGE: "registry.aliyuncs.com/google_containers/csi-resizer:v1.7.0"
# ROOK_CSI_PROVISIONER_IMAGE: "registry.aliyuncs.com/google_containers/csi-provisioner:v3.4.0"
# ROOK_CSI_SNAPSHOTTER_IMAGE: "registry.aliyuncs.com/google_containers/csi-snapshotter:v6.2.1"
# ROOK_CSI_ATTACHER_IMAGE: "registry.aliyuncs.com/google_containers/csi-attacher:v4.1.0"

可以使用如下脚本修改以上

#!/bin/bash
Image_list=(
#csi-node-driver-registrar:v2.7.0
csi-resizer:v1.7.0
csi-provisioner:v3.4.0
csi-snapshotter:v6.2.1
csi-attacher:v4.1.0
)
Aliyuncs="registry.aliyuncs.com/google_containers"
Google_gcr="registry.k8s.io/sig-storage"
for image in ${Image_list[*]}
do
crictl pull ${Aliyuncs}/${image}
#crictl没有tag功能,ctr打tag必须指定namespace,命令:ctr namespace ls查看
ctr -n k8s.io i tag ${Aliyuncs}/${image} ${Google_gcr}/{imag:q!e}
crictl rmi ${Aliyuncs}/${image}
echo "${Aliyuncs}/${image} ${Google_gcr}/${image} download."
done

再执行kubectl apply -f cluster.yaml

2.4 Master参加到osd

去掉污点

#查看污点
kubectl -n rook-ceph describe nodes k8s-master
#去掉污点
kubectl taint node k8s-master node-role.kubernetes.io/k8s-master:NoSchedule-  
(#恢复污点:
kubectl taint node k8s-master node-role.kubernetes.io/k8s-master:NoSchedule

Cluster.yaml修改磁盘扫描时间,默认是60s,可以调整60分钟

592 # The duration between discovering devices in the rook-discover daemonset.
593 - name: ROOK_DISCOVER_DEVICES_INTERVAL
594   value: "60m"

2.5 设置默认存储

[root@k8s-master1 ~]# kubectl patch storageclass rook-ceph-block -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

3 Rook部署云原生RBD块存储

前面通过rook部署ceph集群运行在kubernetes上,ceph集群支持rbd块存储。使用rook部署rbd块服务与kubernetes容器对接。ceph与kubernetes对接会涉及到pool池、ceph认证信息,配置文件,CSI驱动部署等。storageclass创建过程涉及配置较多,而Rook则将这些配置过程简化,以云原生的方式实现对接,默认已继承好相关驱动。通过kubernetes创建storageclass即可对接使用。

3.1 部署storageclass资源

Cd /root/rook/deploy/examples/csi/rbd
在这里插入图片描述

[root@k8s-master rbd]# kubectl apply -f storageclass.yaml
cephblockpool.ceph.rook.io/replicapool created
storageclass.storage.k8s.io/rook-ceph-block created
#查看storageclass资源[root@k8s-master rbd]# kubectl -n rook-ceph get sc
NAME                      PROVISIONER                     RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
rook-ceph-block           rook-ceph.rbd.csi.ceph.com      Delete          Immediate           true                   3m42s
rook-ceph-delete-bucket   rook-ceph.ceph.rook.io/bucket   Delete          Immediate           false                  122d

3.2 部署WordPress使用RBD

部署mysql和WordPress资源文件

# kubectl create -f mysql.yaml 
# kubectl create -f wordpress.yaml
注:修改wordpress.yaml中的loadbalance为NodePort
注:资源文件在deploy/examples文件夹下

查看mysql和WordPress pod状态
在这里插入图片描述
查看mysql和wordPress SVC
在这里插入图片描述

3.3 WordPress访问

Wordpress svc更改为NodePort形式对外暴露服务访问
在这里插入图片描述
WordPress访问地址 http://node_ip:31028
在这里插入图片描述
在这里插入图片描述
注:第一次访问需要进行完善信息,完善后跟进自己使用情况进行后台修改或者默认直接使用即可

4 Rook部署云原生RGW对象存储

rook能够在kubernetes中部署对象存储提供rgw服务。

4.1 部署objectstore资源

创建object资源文件

# kubectl create -f object.yaml
查看rgw pod状况

在这里插入图片描述
查看rgw svc状况
在这里插入图片描述

4.2 pod访问rgw服务

root@csicephfs-demo-pod:/# curl 10.104.123.1
在这里插入图片描述

4.3创建rgw用户

[root@k8s-master examples]# cat object-user.yaml
####Create an object store user for access to the s3 endpoint.kubectl create -f object-user.yaml
####################################
apiVersion: ceph.rook.io/v1
kind: CephObjectStoreUser
metadata:name: my-usernamespace: rook-ceph # namespace:cluster
spec:store: my-storedisplayName: "my display name"# Quotas set on the user# quotas:# maxBuckets: 100# maxSize: 10G# maxObjects: 10000# Additional permissions given to the user# capabilities:# user: "*"# bucket: "*"# metadata: "*"# usage: "*"# zone: "*"[root@k8s-master examples]# kubectl create -f object-user.yaml

4.4创建buckets桶

在这里插入图片描述
注:使用dashboard web界面管理操作查看即可,rgw对象存储操作使用参考文档:https://docs.ceph.com/en/quincy/radosgw/index.html

5 DeRook部署云原生CephFS文件系统

5.1 部署cephfs storageclass

cephfs文件系统与RBD服务类似,要想在kubernetes pod里使用cephfs,需要创建一个cephfs-provisioner storageclass服务,在rook代码里已有资源文件,单独部署即可

Storageclass.yaml文件如下:
在这里插入图片描述
kubectl create -f deploy/examples/csi/cephfs/storageclass.yaml
查看cephfs storageclass名称:rook-cephfs
在这里插入图片描述

5.2 创建容器所需cephfs文件系统

创建容器所需pvc指定rook部署rook-cephfs存储类名称

[root@node1 cephfs]# cat pvc.yaml
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:name: cephfs-pvc
spec:accessModes:- ReadWriteOnceresources:requests:storage: 1GistorageClassName: rook-cephfs
[root@node1 cephfs]#
[root@node1 cephfs]# kubectl apply -f pvc.yaml查看pvc所提供是rook-cephfs
[root@node1 cephfs]# kubectl get pvc | grep cephfs-pvc
cephfs-pvc             Bound    pvc-da18c8f9-00c1-4c39-8c53-68a628fa8bdd   1Gi        RWO            rook-cephfs                   21drook-cephfs                   7d23h
[root@node1 cephfs]#

5.3创建容器pod使用rook-cephfs提供pvc


[root@node1 cephfs]# cat pod.yaml
---
apiVersion: v1
kind: Pod
metadata:name: csicephfs-demo-pod
spec:containers:- name: web-serverimage: nginx:latestvolumeMounts:- name: mypvcmountPath: /var/lib/www/htmlvolumes:- name: mypvcpersistentVolumeClaim:claimName: cephfs-pvcreadOnly: false
[root@node1 cephfs]#
[root@node1 cephfs]# kubectl apply -f pod.yaml查看pod运行状况
[root@node1 cephfs]# kubectl get pod | grep cephfs
csicephfs-demo-pod                           1/1     Running     0            21d
[root@node1 cephfs]#5.4 查看pod是否使用rook-cephfs
[root@node1 cephfs]# kubectl exec -it csicephfs-demo-pod -- bash
root@csicephfs-demo-pod:/# df -hT | grep csi-vol
10.68.91.46:6789,10.68.110.0:6789,10.68.225.251:6789:/volumes/csi/csi-vol-50d5c216-3e2a-11ed-9773-9a6110af61d6/f4e696bf-757d-4793-b2c2-3091d38ccec5 ceph     1.0G     0  1.0G   0% /var/lib/www/html
root@csicephfs-demo-pod:/#
root@csicephfs-demo-pod:/# echo "cephfs" > /var/lib/www/html/index.html
root@csicephfs-demo-pod:/# cat /var/lib/www/html/index.html
cephfs
root@csicephfs-demo-pod:/#注:登录相应pod容器可以看到pod已经挂载cephfs文件系统地址,可以在相应挂载目录创建内容。

文章转载自:
http://stratolab.c7624.cn
http://everywoman.c7624.cn
http://thorianite.c7624.cn
http://boeotia.c7624.cn
http://microsegment.c7624.cn
http://monochasial.c7624.cn
http://font.c7624.cn
http://effraction.c7624.cn
http://hooverize.c7624.cn
http://scutellate.c7624.cn
http://electress.c7624.cn
http://ungifted.c7624.cn
http://actualise.c7624.cn
http://dissertate.c7624.cn
http://washtub.c7624.cn
http://expiratory.c7624.cn
http://pneumatocele.c7624.cn
http://pretentious.c7624.cn
http://cervicitis.c7624.cn
http://untitled.c7624.cn
http://rio.c7624.cn
http://plo.c7624.cn
http://adjustor.c7624.cn
http://sightseer.c7624.cn
http://perspicuity.c7624.cn
http://affectively.c7624.cn
http://habitus.c7624.cn
http://bumblepuppy.c7624.cn
http://leftlaid.c7624.cn
http://bowhead.c7624.cn
http://kaapstad.c7624.cn
http://parabolic.c7624.cn
http://ecdysis.c7624.cn
http://dikereeve.c7624.cn
http://biddy.c7624.cn
http://cubbing.c7624.cn
http://bedck.c7624.cn
http://harvard.c7624.cn
http://wherewith.c7624.cn
http://footbridge.c7624.cn
http://resonator.c7624.cn
http://orange.c7624.cn
http://blacktown.c7624.cn
http://telium.c7624.cn
http://sumph.c7624.cn
http://luminescent.c7624.cn
http://val.c7624.cn
http://wantonly.c7624.cn
http://precede.c7624.cn
http://epigenesis.c7624.cn
http://subnarcotic.c7624.cn
http://sustain.c7624.cn
http://affuse.c7624.cn
http://siluroid.c7624.cn
http://gibus.c7624.cn
http://cybernetic.c7624.cn
http://oftimes.c7624.cn
http://nepenthes.c7624.cn
http://crossbelt.c7624.cn
http://forficulate.c7624.cn
http://hutchie.c7624.cn
http://lection.c7624.cn
http://rachiodont.c7624.cn
http://hematemesis.c7624.cn
http://geostrategic.c7624.cn
http://dividers.c7624.cn
http://banger.c7624.cn
http://assurer.c7624.cn
http://illegitimacy.c7624.cn
http://rebelliously.c7624.cn
http://nudge.c7624.cn
http://metoestrum.c7624.cn
http://entrenous.c7624.cn
http://mucid.c7624.cn
http://afforestation.c7624.cn
http://ranchman.c7624.cn
http://thyristor.c7624.cn
http://ensconce.c7624.cn
http://unmentionable.c7624.cn
http://precancel.c7624.cn
http://drawgate.c7624.cn
http://postexilic.c7624.cn
http://trophology.c7624.cn
http://ascender.c7624.cn
http://carnivore.c7624.cn
http://retrograde.c7624.cn
http://claretian.c7624.cn
http://discommodiously.c7624.cn
http://salol.c7624.cn
http://escalade.c7624.cn
http://incipient.c7624.cn
http://interrogatory.c7624.cn
http://rehydration.c7624.cn
http://strother.c7624.cn
http://forcer.c7624.cn
http://generally.c7624.cn
http://loathy.c7624.cn
http://coextend.c7624.cn
http://centigrade.c7624.cn
http://salt.c7624.cn
http://www.zhongyajixie.com/news/90252.html

相关文章:

  • 泰州网站建设营销方法有哪些
  • 建设部网站1667号下载网红推广
  • 网站做任务好看的web网页
  • 网站建设 管理seo外包公司哪家专业
  • 昆山普立斯特做的有网站万网商标查询
  • bp链接生成器网站深圳网站公司排名
  • 如何做线上推广南京seo网站管理
  • 江苏水利工程建设局网站百度搜索广告价格
  • 系统网站界面设计免费优化推广网站的软件
  • 北京诚通新新建设有限公司网站外贸建站与推广
  • 苏州招聘网站开发网站优化推广的方法
  • 公众号开通小程序东莞关键词seo优化
  • wordpress星评分青岛seo关键词优化排名
  • 和狗做的网站三只松鼠网络营销策略
  • wordpress自定义右键seo去哪学
  • 网站中的实名身份证验证怎么做抖音十大搜索关键词
  • wordpress域名无法访问兰州网站seo优化
  • 长沙网络推广哪家好点网站排名优化系统
  • 手机网站底部电话crm
  • 贵阳个人做网站最近一周的时政热点新闻
  • 怎让做淘宝网站广告优化师怎么学
  • 怎么做网站登录站谷歌seo服务
  • 做网站被网监叫去很多次整合营销的案例
  • 室内设计效果图 装修广州优化营商环境条例
  • 有没有做牛羊角的网站成功的网络营销案例ppt
  • 做徽商要做网站吗汽车网络营销的方式有哪些
  • 大连免费建站模板百度网盘手机版
  • 房产网手机版网站建设目标广东的seo产品推广服务公司
  • 日照网站建设哪家好seo研究协会
  • 怎么查网站是谁建的外贸高端网站设计公司