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

企业网站四大类型个人网站 组建

企业网站四大类型,个人网站 组建,建网站的程序,网页制作与设计是什么操作系统k8smysqlminiojuicefs内核centos8.21.19.18.0.39RELEASE.2023-12-20T01-00-02Zv0.19.04.18.0-193.el8.x86_64 本文k8s较老采用老版本的juicefs#xff0c;中间件也都是部署在k8s上。测试是否能成功创建动态pvc挂在到测试pod当中并查看到数据信息。一些偏理论知识就不多…操作系统k8smysqlminiojuicefs内核centos8.21.19.18.0.39RELEASE.2023-12-20T01-00-02Zv0.19.04.18.0-193.el8.x86_64 本文k8s较老采用老版本的juicefs中间件也都是部署在k8s上。测试是否能成功创建动态pvc挂在到测试pod当中并查看到数据信息。一些偏理论知识就不多说了直接开始操作 官方演示视频​​​​​​JuiceFS CSI Driver 简介 - Office Hours 20220629_哔哩哔哩_bilibili  官方文档安装 | JuiceFS Document Center k8s部署mysql-CSDN博客 k8s部署minio集群-CSDN博客 参考以上两篇文章将中间件依赖环境先搭建起来 准备juicefs部署文件 k8s.yamljuicefs # DO NOT EDIT: generated by kustomize build apiVersion: v1 kind: ServiceAccount metadata:labels:app.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastername: juicefs-csi-controller-sanamespace: kube-system --- apiVersion: v1 kind: ServiceAccount metadata:labels:app.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastername: juicefs-csi-node-sanamespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata:labels:app.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastername: juicefs-csi-external-node-service-role rules: - apiGroups:- resources:- podsverbs:- get- list- create- update- delete- patch- watch - apiGroups:- resources:- pods/logverbs:- get - apiGroups:- resources:- secretsverbs:- get- create- update- delete- patch - apiGroups:- batchresources:- jobsverbs:- get- create- update- delete- patch - apiGroups:- resources:- nodes/proxyverbs:- * - apiGroups:- resources:- persistentvolumesverbs:- get- list --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata:labels:app.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastername: juicefs-external-provisioner-role rules: - apiGroups:- resources:- persistentvolumesverbs:- get- list- watch- create- delete - apiGroups:- resources:- persistentvolumeclaimsverbs:- get- list- watch- update - apiGroups:- storage.k8s.ioresources:- storageclassesverbs:- get- list- watch - apiGroups:- resources:- eventsverbs:- list- watch- create- update- patch - apiGroups:- storage.k8s.ioresources:- csinodesverbs:- get- list- watch - apiGroups:- resources:- nodesverbs:- get- list- watch - apiGroups:- resources:- secretsverbs:- get- create- update- patch- delete - apiGroups:- resources:- pods- pods/logverbs:- get- list- watch- create- update- patch- delete - apiGroups:- batchresources:- jobsverbs:- get- create- update- patch- delete - apiGroups:- resources:- endpointsverbs:- get- list- watch- create- update- patch - apiGroups:- appsresources:- daemonsetsverbs:- get- list - apiGroups:- coordination.k8s.ioresources:- leasesverbs:- get- watch- list- delete- update- create - apiGroups:- resources:- configmapsverbs:- get- watch- list- delete- update- create --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata:labels:app.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastername: juicefs-csi-node-service-binding roleRef:apiGroup: rbac.authorization.k8s.iokind: ClusterRolename: juicefs-csi-external-node-service-role subjects: - kind: ServiceAccountname: juicefs-csi-node-sanamespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata:labels:app.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastername: juicefs-csi-provisioner-binding roleRef:apiGroup: rbac.authorization.k8s.iokind: ClusterRolename: juicefs-external-provisioner-role subjects: - kind: ServiceAccountname: juicefs-csi-controller-sanamespace: kube-system --- apiVersion: apps/v1 kind: StatefulSet metadata:labels:app.kubernetes.io/component: controllerapp.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastername: juicefs-csi-controllernamespace: kube-system spec:replicas: 1selector:matchLabels:app: juicefs-csi-controllerapp.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: masterserviceName: juicefs-csi-controllertemplate:metadata:labels:app: juicefs-csi-controllerapp.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: masterspec:containers:- args:- --endpoint$(CSI_ENDPOINT)- --logtostderr- --nodeid$(NODE_NAME)- --leader-election- --v5env:- name: CSI_ENDPOINTvalue: unix:///var/lib/csi/sockets/pluginproxy/csi.sock- name: NODE_NAMEvalueFrom:fieldRef:fieldPath: spec.nodeName- name: JUICEFS_MOUNT_NAMESPACEvalueFrom:fieldRef:fieldPath: metadata.namespace- name: POD_NAMEvalueFrom:fieldRef:fieldPath: metadata.name- name: JUICEFS_MOUNT_PATHvalue: /var/lib/juicefs/volume- name: JUICEFS_CONFIG_PATHvalue: /var/lib/juicefs/configimage: juicedata/juicefs-csi-driver:v0.19.0livenessProbe:failureThreshold: 5httpGet:path: /healthzport: healthzinitialDelaySeconds: 10periodSeconds: 10timeoutSeconds: 3name: juicefs-pluginports:- containerPort: 9909name: healthzprotocol: TCPresources:limits:cpu: 1000mmemory: 1Girequests:cpu: 100mmemory: 512MisecurityContext:capabilities:add:- SYS_ADMINprivileged: truevolumeMounts:- mountPath: /var/lib/csi/sockets/pluginproxy/name: socket-dir- mountPath: /jfsmountPropagation: Bidirectionalname: jfs-dir- mountPath: /root/.juicefsmountPropagation: Bidirectionalname: jfs-root-dir- args:- --csi-address$(ADDRESS)- --timeout60s- --enable-leader-election- --v5env:- name: ADDRESSvalue: /var/lib/csi/sockets/pluginproxy/csi.sockimage: quay.io/k8scsi/csi-provisioner:v1.6.0name: csi-provisionervolumeMounts:- mountPath: /var/lib/csi/sockets/pluginproxy/name: socket-dir- args:- --csi-address$(ADDRESS)- --health-port$(HEALTH_PORT)env:- name: ADDRESSvalue: /csi/csi.sock- name: HEALTH_PORTvalue: 9909image: quay.io/k8scsi/livenessprobe:v1.1.0name: liveness-probevolumeMounts:- mountPath: /csiname: socket-dirpriorityClassName: system-cluster-criticalserviceAccount: juicefs-csi-controller-satolerations:- key: CriticalAddonsOnlyoperator: Existsvolumes:- emptyDir: {}name: socket-dir- hostPath:path: /var/lib/juicefs/volumetype: DirectoryOrCreatename: jfs-dir- hostPath:path: /var/lib/juicefs/configtype: DirectoryOrCreatename: jfs-root-dirvolumeClaimTemplates: [] --- apiVersion: apps/v1 kind: DaemonSet metadata:labels:app.kubernetes.io/component: nodeapp.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastername: juicefs-csi-nodenamespace: kube-system spec:selector:matchLabels:app: juicefs-csi-nodeapp.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastertemplate:metadata:labels:app: juicefs-csi-nodeapp.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: masterspec:containers:- args:- --endpoint$(CSI_ENDPOINT)- --logtostderr- --nodeid$(NODE_NAME)- --v5- --enable-managertrueenv:- name: CSI_ENDPOINTvalue: unix:/csi/csi.sock- name: NODE_NAMEvalueFrom:fieldRef:fieldPath: spec.nodeName- name: JUICEFS_MOUNT_NAMESPACEvalueFrom:fieldRef:fieldPath: metadata.namespace- name: POD_NAMEvalueFrom:fieldRef:fieldPath: metadata.name- name: HOST_IPvalueFrom:fieldRef:fieldPath: status.hostIP- name: KUBELET_PORTvalue: 10250- name: JUICEFS_MOUNT_PATHvalue: /var/lib/juicefs/volume- name: JUICEFS_CONFIG_PATHvalue: /var/lib/juicefs/configimage: juicedata/juicefs-csi-driver:v0.19.0lifecycle:preStop:exec:command:- /bin/sh- -c- rm /csi/csi.socklivenessProbe:failureThreshold: 5httpGet:path: /healthzport: healthzinitialDelaySeconds: 10periodSeconds: 10timeoutSeconds: 3name: juicefs-pluginports:- containerPort: 9909name: healthzprotocol: TCPresources:limits:cpu: 1000mmemory: 1Girequests:cpu: 100mmemory: 512MisecurityContext:privileged: truevolumeMounts:- mountPath: /var/lib/kubeletmountPropagation: Bidirectionalname: kubelet-dir- mountPath: /csiname: plugin-dir- mountPath: /devname: device-dir- mountPath: /jfsmountPropagation: Bidirectionalname: jfs-dir- mountPath: /root/.juicefsmountPropagation: Bidirectionalname: jfs-root-dir- args:- --csi-address$(ADDRESS)- --kubelet-registration-path$(DRIVER_REG_SOCK_PATH)- --v5env:- name: ADDRESSvalue: /csi/csi.sock- name: DRIVER_REG_SOCK_PATHvalue: /var/lib/kubelet/csi-plugins/csi.juicefs.com/csi.sockimage: quay.io/k8scsi/csi-node-driver-registrar:v2.1.0name: node-driver-registrarvolumeMounts:- mountPath: /csiname: plugin-dir- mountPath: /registrationname: registration-dir- args:- --csi-address$(ADDRESS)- --health-port$(HEALTH_PORT)env:- name: ADDRESSvalue: /csi/csi.sock- name: HEALTH_PORTvalue: 9909image: quay.io/k8scsi/livenessprobe:v1.1.0name: liveness-probevolumeMounts:- mountPath: /csiname: plugin-dirdnsPolicy: ClusterFirstWithHostNetpriorityClassName: system-node-criticalserviceAccount: juicefs-csi-node-satolerations:- key: CriticalAddonsOnlyoperator: Existsvolumes:- hostPath:path: /var/lib/kubelettype: Directoryname: kubelet-dir- hostPath:path: /var/lib/kubelet/csi-plugins/csi.juicefs.com/type: DirectoryOrCreatename: plugin-dir- hostPath:path: /var/lib/kubelet/plugins_registry/type: Directoryname: registration-dir- hostPath:path: /devtype: Directoryname: device-dir- hostPath:path: /var/lib/juicefs/volumetype: DirectoryOrCreatename: jfs-dir- hostPath:path: /var/lib/juicefs/configtype: DirectoryOrCreatename: jfs-root-dir --- apiVersion: storage.k8s.io/v1 kind: CSIDriver metadata:labels:app.kubernetes.io/instance: juicefs-csi-driverapp.kubernetes.io/name: juicefs-csi-driverapp.kubernetes.io/version: mastername: csi.juicefs.com spec:attachRequired: falsepodInfoOnMount: falsesecret.yaml存储数据秘钥信息 apiVersion: v1 kind: Secret metadata:name: juicefs-secretnamespace: defaultlabels:# 增加该标签以启用认证信息校验juicefs.com/validate-secret: true type: Opaque stringData:name: data metaurl: mysql://root:PR38Ke2sP(mysql.juicefs.svc.cluster.local:3306)/juicefs storage: minio bucket: http://minio-service.juicefs.svc.cluster.local:9000/juicefsaccess-key: adminsecret-key: 0oO1iIlLq9g#MINIO_ACCESS_KEY: admin #MINIO_SECRET_KEY: 0oO1iIlLq9g #这里minio用来做数据存储需要注意的是9000/juicefs这里是你的桶实现创建好name: data会自行拼接到juicefs后面。也需要提前创建data出来 storageclasses.yaml根据秘钥信息创建的sc apiVersion: storage.k8s.io/v1 kind: StorageClass metadata:name: juicefs-sc provisioner: csi.juicefs.com parameters:csi.storage.k8s.io/provisioner-secret-name: juicefs-secretcsi.storage.k8s.io/provisioner-secret-namespace: defaultcsi.storage.k8s.io/node-publish-secret-name: juicefs-secretcsi.storage.k8s.io/node-publish-secret-namespace: default reclaimPolicy: Retainpvc-test.yaml测试pvc挂载pod apiVersion: v1 kind: PersistentVolumeClaim metadata:name: juicefs-pvc#namespace: juicefs spec:accessModes:- ReadWriteManyresources:requests:# 从 StorageClass 中申请 10GiB 存储容量storage: 3GistorageClassName: juicefs-sc --- apiVersion: v1 kind: Pod metadata:name: busybox#namespace: juicefs spec:containers:- name: busyboximage: gcr.io/google-containers/busybox:latestimagePullPolicy: IfNotPresentcommand: [sh, -c, tail -f /dev/null]tty: true # 启用TTY以便可以连接到容器volumeMounts: # 确保此行与 containers 下的其他字段对齐- mountPath: /optname: juicefs-pvmountPropagation: HostToContainerrestartPolicy: Never # 设置为 Never 以便测试完成后不会自动重启volumes: # 确保此行与 containers 对齐- name: juicefs-pvpersistentVolumeClaim:claimName: juicefs-pvc测试步骤  apply k8s.yaml 后会得到以下pod 当juicefs-csi相关pod成功拉起以后需要生成基于mysql与minio的secret。这个secret是用来给storageclasses使用的让它能够调用csi去mount文件创建挂载点。 以上配置创建好以后apply pvc-test来测试动态创建pvc效果发现会启用一个这种pod。是一个挂载点pod。 发现测试pod也成功创建了pvc也创建了并且绑定了busyboxpod 感兴趣可以看一下minio跟mysql数据存储的状态。这里就不截图演示了。 官方文档给的样例模板创建和使用 PV | JuiceFS Document Center #juicefs相关镜像 juicedata/juicefs-csi-driver:v0.19.0 quay.io/k8scsi/csi-node-driver-registrar:v2.1.0 quay.io/k8scsi/csi-provisioner:v1.6.0 quay.io/k8scsi/livenessprobe:v1.1.0 juicedata/mount:ce-v1.0.4
http://www.dnsts.com.cn/news/138348.html

相关文章:

  • 网站后台 源码商城类网站建设步骤
  • 建网站模板nginx wordpress伪静态
  • 网站做接口怎么做如何开通网上商城
  • 小伙做钓鱼网站 背警方带走phpcms 网站 关闭
  • 湖北工程建设信息网站做暧暧小视频免费网站
  • 个人可以做自媒体网站吗优化关键词排名哪家好
  • 观影楼网站wordpress按需求开发
  • 做网站servlet遵义建设厅官方网站
  • 凡科建站价格网站中的文章可以做排名吗
  • 衡水提供网站制作公司报价桂林市天气预报15天准确
  • 广州网站网站为什么开发app
  • 网站开发需要掌握哪些技术企业咨询公司名称大全
  • ps制作网站模板批量关键词调排名软件
  • 书画网站免费源码网站开发用什么电脑好
  • 咸宁做网站的公司网站设计建设 网络营销推广
  • 备案时网站名称小程序平台入口
  • 北京微信网站8大营销工具
  • 诸城网络科技网站建设公司做网站的
  • 石家庄做外贸网站推广自己注册公司多少钱
  • 惠东网络建站公司wordpress 强制换行
  • 服务器上搭建网站住宅项目建设背景
  • 大气门户网站百度免费咨询
  • 交通门户网站建设嵌入式培训什么意思
  • 网站后台管理系统代码html旅游网页设计代码
  • 五华县建设局网站网络营销的发展现状及趋势
  • 设计师联盟网站成都微信小程序开发平台
  • 注册了网站怎么建设网站代码下载
  • 福建网站优化网站分析工具
  • 网站开发项目需求书wordpress 前端投稿
  • 网站开发推荐一本书西安查派网站建设