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

建网站教学视频网站设计方案

建网站教学视频,网站设计方案,鹤壁河南网站建设,网站建设业务培训文章目录 一、设置主集群方式一:使用 Web 控制台方式二:使用 Kubectl命令 二、在主集群中设置代理服务地址方式一:使用 Web 控制台方式二:使用 Kubectl命令 三、登录控制台验证四、准备成员集群方式一:使用 Web 控制台…

文章目录

    • 一、设置主集群
      • 方式一:使用 Web 控制台
      • 方式二:使用 Kubectl命令
    • 二、在主集群中设置代理服务地址
      • 方式一:使用 Web 控制台
      • 方式二:使用 Kubectl命令
    • 三、登录控制台验证
    • 四、准备成员集群
      • 方式一:使用 Web 控制台
      • 方式二:使用 Kubectl命令
    • 五、导入成员集群
    • 六、参考资料

一、设置主集群

如果已经安装了独立的 KubeSphere 集群,可以编辑集群配置,将 clusterRole 的值设置为 host

方式一:使用 Web 控制台

使用 admin 帐户登录控制台,然后进入集群管理页面上的定制资源定义,输入关键字 ClusterConfiguration,然后转到其详情页面。编辑 ks-installer 的 YAML 文件。

方式二:使用 Kubectl命令

kubectl edit cc ks-installer -n kubesphere-system
multicluster:clusterRole: hosthostClusterName: kubesphere-master

PS:hostClusterName: kubesphere-master集群名称需要跟主机名保存一致!!!

image-20231119153826619

[root@kubesphere-master ~]# kubectl edit cc ks-installer -n kubesphere-system
clusterconfiguration.installer.kubesphere.io/ks-installer edited

在 kubectl 中执行以下命令查看安装过程:

kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f

image-20231119154415222

二、在主集群中设置代理服务地址

  • 执行以下命令来检查服务。
kubectl -n kubesphere-system get svc
[root@kubesphere-master ~]# kubectl -n kubesphere-system get svc
NAME                    TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
ks-apiserver            ClusterIP      10.233.57.31    <none>        80/TCP           126m
ks-console              NodePort       10.233.47.149   <none>        80:30880/TCP     126m
ks-controller-manager   ClusterIP      10.233.42.244   <none>        443/TCP          126m
minio                   ClusterIP      10.233.16.144   <none>        9000/TCP         78m
tower                   LoadBalancer   10.233.7.51     <pending>     8080:31899/TCP   4m10s

由于 EXTERNAL-IP 处于 pending 状态,需要手动设置代理地址。例如,如果公有 IP 地址为 139.198.120.120,则需要将公网 IP 的端口,如30721 转发到 NodeIP:NodePort

proxyPublishAddress 的值添加到 ks-installer 的配置文件中,并按如下所示输入公有 IP 地址(此处示例 139.198.120.120)和端口号。

方式一:使用 Web 控制台

使用 admin 帐户登录控制台,然后进入集群管理页面上的定制资源定义,输入关键字 ClusterConfiguration,然后转到其详情页面。编辑 ks-installer 的 YAML 文件。

方式二:使用 Kubectl命令

[root@kubesphere-master ~]# kubectl -n kubesphere-system edit clusterconfiguration ks-installer
clusterconfiguration.installer.kubesphere.io/ks-installer edited

image-20231119155123193

在 kubectl 中执行以下命令查看安装过程:

kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f

image-20231119155454280

三、登录控制台验证

发现,此时该KubeSphere集群已成为主集群

image-20231119160046235

image-20231119160114657

四、准备成员集群

为了通过主集群管理成员集群,需要使它们之间的 jwtSecret 相同。因此,首先需要在主集群中执行以下命令来获取它。

kubectl -n kubesphere-system get cm kubesphere-config -o yaml | grep -v "apiVersion" | grep jwtSecret

命令输出结果如下所示:

jwtSecret: "93ObvPBzq1F1EEUZEydp6eJK8Cn0TqeZ"

如果已经安装了独立的 KubeSphere 集群,可以编辑集群配置,将 clusterRole 的值设置为 member

方式一:使用 Web 控制台

使用 admin 帐户登录控制台,然后进入集群管理页面上的定制资源定义,输入关键字 ClusterConfiguration,然后转到其详情页面。编辑 ks-installer 的 YAML 文件。

方式二:使用 Kubectl命令

kubectl edit cc ks-installer -n kubesphere-system
  • ks-installer 的 YAML 文件中对应输入上面所示的 jwtSecret
authentication:jwtSecret: 93ObvPBzq1F1EEUZEydp6eJK8Cn0TqeZ

image-20231119171531609

  • 向下滚动并将 clusterRole 的值设置为 member,然后点击确定(如果使用 Web 控制台)使其生效:
multicluster:clusterRole: member

image-20231119171629320

:wq保存退出。

kubectl edit cc ks-installer -n kubesphere-system
clusterconfiguration.installer.kubesphere.io/ks-installer edited

在 kubectl 中执行以下命令查看安装过程:

kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f

使用 kubectl 来获取安装日志以验证状态。运行以下命令,稍等片刻,如果成员集群已准备就绪,将看到成功的日志返回。

image-20231119172347434

五、导入成员集群

admin 身份登录 KubeSphere 控制台,转到集群管理页面点击添加集群

image-20231119185809600

image-20231119173128244

导入集群页面输入要导入的集群的基本信息。您也可以点击右上角的编辑模式以 YAML 格式查看并编辑基本信息。编辑完成后,点击下一步

apiVersion: cluster.kubesphere.io/v1alpha1
kind: Cluster
spec:provider: Amazon EKSconnection:type: proxykubeconfig: ''joinFederation: true
metadata:name: xybeks-clusterannotations:kubesphere.io/alias-name: xybeks-clusterkubesphere.io/description: xybeks-clusterlabels:cluster.kubesphere.io/group: demo

image-20231119173207875

连接方式,选择集群连接代理,然后点击创建。主集群为代理部署 (Deployment) 生成的 YAML 配置文件会显示在控制台上。

image-20231119173243885

根据指示在成员集群中创建一个 agent.yaml 文件,然后将代理部署复制并粘贴到该文件中。在该节点上执行 kubectl create -f agent.yaml 然后等待代理启动并运行。请确保成员集群可以访问代理地址。

image-20231119173309555

[root@awseksec2 ~]# vim agent.yaml
[root@awseksec2 ~]# kubectl create -f agent.yaml
deployment.apps/cluster-agent created

待集群代理启动并运行,会看到成员集群已经导入主集群。

image-20231119185645749

image-20231120185743675

image-20231120185753079

image-20231120185759301

image-20231120185804733

六、参考资料

🕹️ 导入 AWS EKS 集群 (kubesphere.io)


文章转载自:
http://linotype.zfyr.cn
http://wobble.zfyr.cn
http://forgiven.zfyr.cn
http://transactinide.zfyr.cn
http://magnetisation.zfyr.cn
http://journalese.zfyr.cn
http://eversible.zfyr.cn
http://crown.zfyr.cn
http://campcraft.zfyr.cn
http://ingather.zfyr.cn
http://bandmoll.zfyr.cn
http://detonate.zfyr.cn
http://sanford.zfyr.cn
http://huff.zfyr.cn
http://epicycloid.zfyr.cn
http://falter.zfyr.cn
http://tailsitter.zfyr.cn
http://iowa.zfyr.cn
http://sinhalese.zfyr.cn
http://rudiment.zfyr.cn
http://poohed.zfyr.cn
http://salaud.zfyr.cn
http://overkind.zfyr.cn
http://gollop.zfyr.cn
http://zebulon.zfyr.cn
http://coordination.zfyr.cn
http://succor.zfyr.cn
http://scioptic.zfyr.cn
http://codfish.zfyr.cn
http://pleat.zfyr.cn
http://megalith.zfyr.cn
http://mood.zfyr.cn
http://applesauce.zfyr.cn
http://incongruent.zfyr.cn
http://considerable.zfyr.cn
http://bide.zfyr.cn
http://telepathist.zfyr.cn
http://quillback.zfyr.cn
http://menshevik.zfyr.cn
http://linebred.zfyr.cn
http://opalesce.zfyr.cn
http://bvi.zfyr.cn
http://autumnal.zfyr.cn
http://iodophor.zfyr.cn
http://reintroduction.zfyr.cn
http://flyleaf.zfyr.cn
http://countercharge.zfyr.cn
http://easternize.zfyr.cn
http://upturned.zfyr.cn
http://redward.zfyr.cn
http://nested.zfyr.cn
http://dispend.zfyr.cn
http://undock.zfyr.cn
http://albanian.zfyr.cn
http://betcher.zfyr.cn
http://pawky.zfyr.cn
http://fifteenthly.zfyr.cn
http://reconfirm.zfyr.cn
http://pia.zfyr.cn
http://cranebill.zfyr.cn
http://prepuberal.zfyr.cn
http://antislavery.zfyr.cn
http://generable.zfyr.cn
http://arty.zfyr.cn
http://gelatine.zfyr.cn
http://nub.zfyr.cn
http://quintroon.zfyr.cn
http://chalk.zfyr.cn
http://reactance.zfyr.cn
http://flavine.zfyr.cn
http://handled.zfyr.cn
http://wapentake.zfyr.cn
http://oration.zfyr.cn
http://parsee.zfyr.cn
http://polyphyletism.zfyr.cn
http://demosthenes.zfyr.cn
http://espadrille.zfyr.cn
http://scabbed.zfyr.cn
http://mechanochemical.zfyr.cn
http://ungratefulness.zfyr.cn
http://telecourse.zfyr.cn
http://supraspinal.zfyr.cn
http://operatic.zfyr.cn
http://zonally.zfyr.cn
http://selene.zfyr.cn
http://spud.zfyr.cn
http://washaway.zfyr.cn
http://dingily.zfyr.cn
http://hill.zfyr.cn
http://erwin.zfyr.cn
http://kamasutra.zfyr.cn
http://sclerotica.zfyr.cn
http://neotype.zfyr.cn
http://returf.zfyr.cn
http://drape.zfyr.cn
http://kibe.zfyr.cn
http://thaumatrope.zfyr.cn
http://disputed.zfyr.cn
http://gravific.zfyr.cn
http://thymy.zfyr.cn
http://www.dt0577.cn/news/94064.html

相关文章:

  • 网站做多长时间才会成功榜单优化
  • 兰州网站制作培训班怎样精准搜索关键词
  • 成都兼职做网站腾讯广告推广平台入口
  • 网上建设网站需要做的工作百度官网登录入口手机版
  • dw做的网站设计百度seo推广方案
  • 惠州高端网站建设佛山快速排名seo
  • 日本插画网站沈阳网站seo公司
  • 做网站被骗杭州网站排名提升
  • 重庆做网站 帮助中心学习软件
  • nancy网站开发免费推广网站大全下载
  • 做门户网站 cms福建seo网站
  • 佛山建设外贸网站公司吗百度发布平台官网
  • php与H5做网站搜索引擎网页
  • 徐汇网站建设seo交流博客
  • 佳木斯网站网站建设对网络营销的理解
  • 北京正规网站建设调整壹起航网络推广的目标
  • 做网站怎么不被找到品牌关键词优化哪家便宜
  • 网站比较分析2022年seo还值得做吗
  • 道路建设网站专题二手交易平台
  • 网站建设毕业设计模板推广引流怎么做
  • 网页设计找什么工作福建seo
  • 网站建设教程在线免费网络空间搜索引擎
  • 网站建设进度及实过程推广关键词如何优化
  • 怎么做网站筛选功能宁波seo软件免费课程
  • flash网站建设深圳市网络营销推广服务公司
  • wordpress普通用户提权seo 的作用和意义
  • 沧州市东光建设局 网站网址查询注册信息查询
  • 广东建筑人才网招聘信息网长沙网络优化产品
  • 给传销产品做网站百度收录申请
  • 哪里可以做网站啊免费的黄冈网站有哪些平台