KubeSphere|KubeSphere 升级 && 安装后启用插件

KubeSphere 升级

root@master1:~# export KKZONE=cn root@master1:~# kk upgrade --with-kubernetes v1.22.1 --with-kubesphere v3.2.0 -f sample.yaml

KubeSphere|KubeSphere 升级 && 安装后启用插件
文章图片

启用插件
用户可以使用 KubeSphere Web 控制台查看和操作不同的资源。要在安装后启用可插拔组件,只需要在控制台中进行略微调整。对于那些习惯使用 Kubernetes 命令行工具 kubectl 的人来说,由于该工具已集成到控制台中,因此使用 KubeSphere 将毫无困难。
以 admin 身份登录控制台。点击左上角的平台管理 ,然后选择集群管理。
集群管理
KubeSphere|KubeSphere 升级 && 安装后启用插件
文章图片

点击 CRD,然后在搜索栏中输入 clusterconfiguration,点击搜索结果进入其详情页面。
CRD
KubeSphere|KubeSphere 升级 && 安装后启用插件
文章图片

KubeSphere|KubeSphere 升级 && 安装后启用插件
文章图片

KubeSphere|KubeSphere 升级 && 安装后启用插件
文章图片

编辑配置文件
在该配置文件中,将对应组件 enabled 的 false 更改为 true,以启用要安装的组件。完成后,点击更新以保存配置。
我的内容:
apiVersion: installer.kubesphere.io/v1alpha1 kind: ClusterConfiguration metadata: labels: version: v3.2.0 name: ks-installer namespace: kubesphere-system spec: alerting: enabled: true auditing: enabled: true authentication: jwtSecret: '' common: core: console: enableMultiLogin: true port: 30880 type: NodePort es: basicAuth: enabled: true password: '' username: '' data: volumeSize: 20Gi elkPrefix: logstash externalElasticsearchPort: '' externalElasticsearchUrl: '' logMaxAge: 7 master: volumeSize: 4Gi gpu: kinds: - default: true resourceName: nvidia.com/gpu resourceType: GPU minio: volumeSize: 20Gi monitoring: GPUMonitoring: enabled: true endpoint: 'http://prometheus-operated.kubesphere-monitoring-system.svc:9090' openldap: enabled: true redis: enabled: true devops: enabled: true jenkinsJavaOpts_MaxRAM: 2g jenkinsJavaOpts_Xms: 512m jenkinsJavaOpts_Xmx: 512m jenkinsMemoryLim: 2Gi jenkinsMemoryReq: 1500Mi jenkinsVolumeSize: 8Gi etcd: endpointIps: 192.168.1.10 monitoring: false port: 2379 tlsEnable: true events: enabled: true kubeedge: cloudCore: cloudHub: advertiseAddress: - '' nodeLimit: '100' cloudhubHttpsPort: '10002' cloudhubPort: '10000' cloudhubQuicPort: '10001' cloudstreamPort: '10003' nodeSelector: node-role.kubernetes.io/worker: '' service: cloudhubHttpsNodePort: '30002' cloudhubNodePort: '30000' cloudhubQuicNodePort: '30001' cloudstreamNodePort: '30003' tunnelNodePort: '30004' tolerations: [] tunnelPort: '10004' edgeWatcher: edgeWatcherAgent: nodeSelector: node-role.kubernetes.io/worker: '' tolerations: [] nodeSelector: node-role.kubernetes.io/worker: '' tolerations: [] enabled: true logging: containerruntime: docker enabled: true logsidecar: enabled: true replicas: 2 metrics_server: enabled: true monitoring: gpu: nvidia_dcgm_exporter: enabled: true storageClass: '' multicluster: clusterRole: none network: ippool: type: none networkpolicy: enabled: true topology: type: none openpitrix: store: enabled: true persistence: storageClass: '' servicemesh: enabled: true

启用组件
执行以下命令,使用 Web kubectl 来检查安装过程:
root@master1:~# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f

如果组件安装成功,输出将显示以下消息。
##################################################### ###Welcome to KubeSphere!### #####################################################Console: http://192.168.0.2:30880 Account: admin Password: P@88w0rdNOTES: 1. After you log into the console, please check the monitoring status of service components in "Cluster Management". If any service is not ready, please wait patiently until all components are up and running. 2. Please change the default password after login.##################################################### https://kubesphere.io20xx-xx-xx xx:xx:xx #####################################################

登录 KubeSphere 控制台,在系统组件中可以查看不同组件的状态。
服务组件
KubeSphere|KubeSphere 升级 && 安装后启用插件
文章图片

KubeSphere|KubeSphere 升级 && 安装后启用插件
文章图片

Linux运维交流社区
Linux运维交流社区,互联网新闻以及技术交流。
47篇原创内容
公众号
KubeSphere|KubeSphere 升级 && 安装后启用插件
文章图片

https://blog.csdn.net/qq_3392...
https://my.oschina.net/u/3981543
https://www.zhihu.com/people/...
https://segmentfault.com/u/hp...
https://juejin.cn/user/331578...
https://space.bilibili.com/35...
https://cloud.tencent.com/dev...
【KubeSphere|KubeSphere 升级 && 安装后启用插件】知乎、CSDN、开源中国、思否、掘金、哔哩哔哩、腾讯云
本文使用 文章同步助手 同步

    推荐阅读