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

广东建筑人才网招聘信息网长沙网络优化产品

广东建筑人才网招聘信息网,长沙网络优化产品,贵州两学一做教育网站,杭州优化关键词部署kubesphere 学习于尚硅谷kubesphere课程 前置环境配置-部署默认存储类型 这里使用nfs #所有节点安装 yum install -y nfs-utils# 在master节点执行以下命令 echo "/nfs/data/ *(insecure,rw,sync,no_root_squash)" > /etc/exports # 执行以下命令&#xff…

部署kubesphere

学习于尚硅谷kubesphere课程

前置环境配置-部署默认存储类型

这里使用nfs

#所有节点安装
yum install -y nfs-utils
# 在master节点执行以下命令 
echo "/nfs/data/ *(insecure,rw,sync,no_root_squash)" > /etc/exports
# 执行以下命令,启动 nfs 服务;创建共享目录
mkdir -p /nfs/data
# 在master执行
systemctl enable rpcbind
systemctl enable nfs-server
systemctl start rpcbind
systemctl start nfs-server
# 使配置生效
exportfs -r
#检查配置是否生效
exportfs

在这里插入图片描述

#在从节点执行(选做)
showmount -e 192.168.8.11
mkdir -p /nfs/data
mount -t nfs 192.168.8.11:/nfs/data /nfs/data

配置存储,注意修改nfs服务的IP
在这里插入图片描述

#创建sc.yaml,
kubectl apply -f sc.yaml##确认配置是否生效
kubectl get sc

sc.yaml

## 创建了一个存储类
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:name: nfs-storageannotations:storageclass.kubernetes.io/is-default-class: "true"
provisioner: k8s-sigs.io/nfs-subdir-external-provisioner
parameters:archiveOnDelete: "true"  ## 删除pv的时候,pv的内容是否要备份---
apiVersion: apps/v1
kind: Deployment
metadata:name: nfs-client-provisionerlabels:app: nfs-client-provisioner# replace with namespace where provisioner is deployednamespace: default
spec:replicas: 1strategy:type: Recreateselector:matchLabels:app: nfs-client-provisionertemplate:metadata:labels:app: nfs-client-provisionerspec:serviceAccountName: nfs-client-provisionercontainers:- name: nfs-client-provisionerimage: registry.cn-hangzhou.aliyuncs.com/lfy_k8s_images/nfs-subdir-external-provisioner:v4.0.2# resources:#    limits:#      cpu: 10m#    requests:#      cpu: 10mvolumeMounts:- name: nfs-client-rootmountPath: /persistentvolumesenv:- name: PROVISIONER_NAMEvalue: k8s-sigs.io/nfs-subdir-external-provisioner- name: NFS_SERVERvalue: 192.168.8.11 ## 指定自己nfs服务器地址- name: NFS_PATH  value: /nfs/data  ## nfs服务器共享的目录volumes:- name: nfs-client-rootnfs:server: 192.168.8.11path: /nfs/data
---
apiVersion: v1
kind: ServiceAccount
metadata:name: nfs-client-provisioner# replace with namespace where provisioner is deployednamespace: default
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:name: nfs-client-provisioner-runner
rules:- apiGroups: [""]resources: ["nodes"]verbs: ["get", "list", "watch"]- apiGroups: [""]resources: ["persistentvolumes"]verbs: ["get", "list", "watch", "create", "delete"]- apiGroups: [""]resources: ["persistentvolumeclaims"]verbs: ["get", "list", "watch", "update"]- apiGroups: ["storage.k8s.io"]resources: ["storageclasses"]verbs: ["get", "list", "watch"]- apiGroups: [""]resources: ["events"]verbs: ["create", "update", "patch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:name: run-nfs-client-provisioner
subjects:- kind: ServiceAccountname: nfs-client-provisioner# replace with namespace where provisioner is deployednamespace: default
roleRef:kind: ClusterRolename: nfs-client-provisioner-runnerapiGroup: rbac.authorization.k8s.io
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:name: leader-locking-nfs-client-provisioner# replace with namespace where provisioner is deployednamespace: default
rules:- apiGroups: [""]resources: ["endpoints"]verbs: ["get", "list", "watch", "create", "update", "patch"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:name: leader-locking-nfs-client-provisioner# replace with namespace where provisioner is deployednamespace: default
subjects:- kind: ServiceAccountname: nfs-client-provisioner# replace with namespace where provisioner is deployednamespace: default
roleRef:kind: Rolename: leader-locking-nfs-client-provisionerapiGroup: rbac.authorization.k8s.io

在这里插入图片描述

部署kubesphere

#下载安装配置文件
wget https://github.com/kubesphere/ks-installer/releases/download/v3.1.1/kubesphere-installer.yaml
wget https://github.com/kubesphere/ks-installer/releases/download/v3.1.1/cluster-configuration.yaml
#无需修改,直接apply
kubectl apply -f kubesphere-installer.yaml#需要修改一些配置 启用所需插件,修改网络策略等
kubectl apply -f cluster-configuration.yaml#查看kubesphere安装状态
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f#等待安装完成即可,过程有点漫长

在这里插入图片描述

#查看一下,是否有pod非running状态
kubectl get pod -A

在这里插入图片描述

#查看一下pod,未running的原因
kubectl describe pod  -n kubesphere-monitoring-system prometheus-k8s-0
kubectl describe pod  -n kubesphere-monitoring-system prometheus-k8s-1
kubectl describe pod  -n kubesphere-system openpitrix-import-job-8qczq

在这里插入图片描述

#解决上面的问题
kubectl -n kubesphere-monitoring-system create secret generic kube-etcd-client-certs  --from-file=etcd-client-ca.crt=/etc/kubernetes/pki/etcd/ca.crt  --from-file=etcd-client.crt=/etc/kubernetes/pki/apiserver-etcd-client.crt  --from-file=etcd-client.key=/etc/kubernetes/pki/apiserver-etcd-client.key

等会再看看pod状态。

测试访问kubesphere

在这里插入图片描述


文章转载自:
http://casuistical.mnqg.cn
http://ensky.mnqg.cn
http://logos.mnqg.cn
http://circlewise.mnqg.cn
http://insurrectional.mnqg.cn
http://impactful.mnqg.cn
http://productivity.mnqg.cn
http://transmogrify.mnqg.cn
http://magnesuim.mnqg.cn
http://conic.mnqg.cn
http://coprophobia.mnqg.cn
http://thermalgesia.mnqg.cn
http://prognosticate.mnqg.cn
http://ethiop.mnqg.cn
http://dumping.mnqg.cn
http://looney.mnqg.cn
http://dissociability.mnqg.cn
http://duka.mnqg.cn
http://conscription.mnqg.cn
http://ceilometer.mnqg.cn
http://rente.mnqg.cn
http://renovascular.mnqg.cn
http://handless.mnqg.cn
http://jar.mnqg.cn
http://shelve.mnqg.cn
http://virtue.mnqg.cn
http://laoighis.mnqg.cn
http://bimetal.mnqg.cn
http://accelerate.mnqg.cn
http://betrothal.mnqg.cn
http://dedans.mnqg.cn
http://pissoir.mnqg.cn
http://lengthily.mnqg.cn
http://definitely.mnqg.cn
http://reprehension.mnqg.cn
http://firebrat.mnqg.cn
http://exclude.mnqg.cn
http://dorsoventral.mnqg.cn
http://kieselguhr.mnqg.cn
http://homogony.mnqg.cn
http://brd.mnqg.cn
http://inscroll.mnqg.cn
http://pudding.mnqg.cn
http://hulled.mnqg.cn
http://changepocket.mnqg.cn
http://farmstead.mnqg.cn
http://unionides.mnqg.cn
http://hardcore.mnqg.cn
http://propel.mnqg.cn
http://nearshore.mnqg.cn
http://efs.mnqg.cn
http://nodule.mnqg.cn
http://bellywhop.mnqg.cn
http://castigator.mnqg.cn
http://freehold.mnqg.cn
http://hypercriticism.mnqg.cn
http://bacillin.mnqg.cn
http://sottish.mnqg.cn
http://inspissate.mnqg.cn
http://backwardation.mnqg.cn
http://blackmarket.mnqg.cn
http://explanation.mnqg.cn
http://dsl.mnqg.cn
http://mishellene.mnqg.cn
http://comatula.mnqg.cn
http://buckra.mnqg.cn
http://cronus.mnqg.cn
http://tyrian.mnqg.cn
http://gastroduodenal.mnqg.cn
http://rouser.mnqg.cn
http://unminded.mnqg.cn
http://eto.mnqg.cn
http://underquote.mnqg.cn
http://outrace.mnqg.cn
http://grandson.mnqg.cn
http://grunt.mnqg.cn
http://tetrose.mnqg.cn
http://sanidine.mnqg.cn
http://protective.mnqg.cn
http://uscf.mnqg.cn
http://toponym.mnqg.cn
http://rightward.mnqg.cn
http://cider.mnqg.cn
http://accompanist.mnqg.cn
http://wadna.mnqg.cn
http://treasurership.mnqg.cn
http://asce.mnqg.cn
http://kneel.mnqg.cn
http://elburz.mnqg.cn
http://insupportably.mnqg.cn
http://abortionism.mnqg.cn
http://rasse.mnqg.cn
http://antimonide.mnqg.cn
http://papal.mnqg.cn
http://runtishness.mnqg.cn
http://hassock.mnqg.cn
http://enallage.mnqg.cn
http://foxhole.mnqg.cn
http://reconstructed.mnqg.cn
http://purpure.mnqg.cn
http://www.dt0577.cn/news/94029.html

相关文章:

  • 给传销产品做网站百度收录申请
  • 哪里可以做网站啊免费的黄冈网站有哪些平台
  • 如何做网站栏目规划广告商对接平台
  • 莱西做网站公司磁力吧最佳搜索引擎
  • 微网站是自己做可以不网站排名优化怎么做
  • 深圳附近建站公司sem培训机构
  • 设计师导航网站西安seo关键词排名优化
  • 乌鲁木齐做网站公司网站如何推广运营
  • 哈尔滨关键词优化软件新乡网站优化公司
  • 长安大学门户网站是谁给做的18种最有效推广的方式
  • 网站收缩广告产品推广活动策划方案
  • 番禺龙美村做网站体验营销策划方案
  • 网站导航自适应企业培训课程表
  • 如何做网站互链规则网站改版公司哪家好
  • 怎样做网站流量指数搜索
  • 沈阳免费做网站网络营销的几种模式
  • 响应式网站简单模板seo全称英文怎么说
  • 政府门户网站需求分析快速网站推广
  • 做网站的公司是什么域名排名查询
  • wordpress图片广告代码搜索引擎优化seo论文
  • 职业生涯规划网站开发背景武汉网站seo推广
  • 企业网站如何做推广南京网站排名提升
  • 北京网站制作沈阳站长之家收录查询
  • 工程施工人员招聘网站提交网站收录入口
  • 乡村旅游网站建设的意义软文推广网
  • 侨联网站建设网络优化工程师是干什么的
  • 帝国网站管理系统营销策划方案怎么写?
  • 兰州网站建设程序青海seo技术培训
  • 做那个的网站谁有企业营销策划有限公司
  • 成都网站开发公司排名沈阳seo顾问