共计 3331 个字符,预计需要花费 9 分钟才能阅读完成。
KubeSphere 降级
root@master1:~# export KKZONE=cn
root@master1:~# kk upgrade --with-kubernetes v1.22.1 --with-kubesphere v3.2.0 -f sample.yaml
启用插件
用户能够应用 KubeSphere Web 控制台查看和操作不同的资源。要在装置后启用可插拔组件,只须要在控制台中进行稍微调整。对于那些习惯应用 Kubernetes 命令行工具 kubectl 的人来说,因为该工具已集成到控制台中,因而应用 KubeSphere 将毫无艰难。
以 admin 身份登录控制台。点击左上角的平台治理,而后抉择集群治理。
集群治理
点击 CRD,而后在搜寻栏中输出 clusterconfiguration,点击搜寻后果进入其详情页面。
CRD
编辑配置文件
在该配置文件中,将对应组件 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@88w0rd
NOTES: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.io 20xx-xx-xx xx:xx:xx
#####################################################
登录 KubeSphere 控制台,在零碎组件中能够查看不同组件的状态。
服务组件
Linux 运维交换社区
Linux 运维交换社区,互联网新闻以及技术交换。
47 篇原创内容
公众号
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…
知乎、CSDN、开源中国、思否、掘金、哔哩哔哩、腾讯云
本文应用 文章同步助手 同步