KubeSsphere 4 使用
428 字
2 分钟
KubeSsphere 4 使用
KubeSphere 更新到 4.x 了
此文章记录下新版KubeSphere使用,主要讲下遇到的问题
1 安装 KubeSphere
Tip
我这里已经有 k8s 集群了,直接在现有集群上,安装 k8s 参考安装 Kubernetes 与 KubeSphere)
1.1 修改配置
[!attention] 官网默认不是高可用,而且没持久化 redisHA需要有默认StorageClass
helm pull https://charts.kubesphere.io/main/ks-core-1.1.2.tgztar -zxvf ks-core-1.1.2.tgzcd ks-core/vim values.yamlglobal: imageRegistry: swr.cn-southwest-2.myhuaweicloud.com/ks tag: v4.1.2portal: hostname: "kubesphere.ccops.com"ingress: enabled: true ingressClassName: "traefik-class" tls: enabled: falsehostClusterName: "ccops"ha: enabled: trueredis: enabled: falseredisHA: enabled: truehelm upgrade --install -n kubesphere-system --create-namespace ks-core . --debug --wait1.2 查看状态
kubectl get pod -n kubesphere-systemNAME READY STATUS RESTARTS AGEextensions-museum-97b8fd969-z8bsc 1/1 Running 0 18mks-apiserver-6898f48b94-886w5 1/1 Running 1 (16m ago) 18mks-apiserver-6898f48b94-d7bwg 1/1 Running 1 (17m ago) 18mks-apiserver-6898f48b94-lpc5d 1/1 Running 1 (16m ago) 18mks-console-6d547457d-9chk8 1/1 Running 0 18mks-console-6d547457d-nx85j 1/1 Running 0 18mks-console-6d547457d-thtld 1/1 Running 0 18mks-controller-manager-78dbb648bb-6qm5v 1/1 Running 0 18mks-controller-manager-78dbb648bb-k9cz6 1/1 Running 0 18mks-controller-manager-78dbb648bb-sf897 1/1 Running 0 18mks-core-redisha-haproxy-bf8d4f8dc-cn6kc 1/1 Running 0 18mks-core-redisha-haproxy-bf8d4f8dc-ggctv 1/1 Running 0 18mks-core-redisha-haproxy-bf8d4f8dc-mc792 1/1 Running 0 18mks-core-redisha-server-0 3/3 Running 0 16mks-core-redisha-server-1 3/3 Running 0 10mks-core-redisha-server-2 3/3 Running 0 6m[!info] 默认账号密码
/P@88w0rd

2 DevOps
global: imageRegistry: swr.cn-southwest-2.myhuaweicloud.com/ksextension: apiserver: replicas: 2 resources: limits: cpu: 500m memory: 1024Mi requests: memory: 128Mi cpu: 100m
agent: apiserver: replicas: 2 resources: limits: cpu: 500m memory: 1024Mi requests: memory: 128Mi cpu: 100m controller: replicas: 2 resources: limits: cpu: 500m memory: 1024Mi requests: cpu: 100m memory: 128Mi jenkins: securityRealm: openIdConnect: # The kubesphere-core api used for jenkins OIDC # If you want to access to jenkinsWebUI, the kubesphereCoreApi must be specified and browser-accessible # Modifying this configuration will take effect only during installation # If you wish for changes to take effect after installation, you need to update the jenkins-casc-config ConfigMap, copy the securityRealm configuration from jenkins.yaml to jenkins_user.yaml, save, and wait for approximately 70 seconds for the changes to take effect. kubesphereCoreApi: "http://ks-apiserver:30880" # The jenkins web URL used for OIDC redirect jenkinsURL: "http://devops-jenkins:30180" Master: resources: requests: cpu: 0.5 memory: 6Gi limits: cpu: 2 memory: 6Gi # recommend set same as requests.memory # smtp server settings for notification smtp: EMAIL_SMTP_HOST: "mail.example.com" EMAIL_SMTP_PORT: "465" EMAIL_USE_SSL: false EMAIL_FROM_NAME: "KubeSphere" EMAIL_FROM_ADDR: "admin@example.com" EMAIL_FROM_PASS: "P@ssw0rd" # sonarQube settings sonarqube: serverUrl: "" authToken: "" persistence: size: 16Gi storageClass: "nfs-sc" accessMode: ReadWriteOnce kubeconfigEnabled: true文章分享
如果这篇文章对你有帮助,欢迎分享给更多人!
相关文章 智能推荐
1
OpenClaw安装
💻Linux 龙虾安装笔记
2
Kubespray 国内安装k8s集群
🐳云原生 最可靠的k8s安装工具
3
如何安全的备份Kubernetes
🐳云原生 如何安全的备份Kubernetes
4
GPU Operator 使用
🐳云原生 监控ingress服务访问日志,实现web监控
5
Calico多集群通信
🐳云原生 Calico 实现多集群通信
随机文章 随机推荐