kubesphere-爱代码爱编程
初始密码
Account: admin
Password: P@88w0rd
ansible部署 选一台master 节点
---
- hosts: k8s_masters
become: yes
tasks:
- name: Install Git
package:
name: git
state: present
- name: Download Helm
get_url:
url: https://get.helm.sh/helm-v3.16.2-linux-amd64.tar.gz
dest: /tmp/helm-v3.16.2-linux-amd64.tar.gz
- name: Extract Helm
unarchive:
src: /tmp/helm-v3.16.2-linux-amd64.tar.gz
dest: /tmp/
remote_src: yes
- name: Move Helm to /usr/local/bin
command: mv /tmp/linux-amd64/helm /usr/local/bin/helm
- name: Add KubeSphere Helm repo
command: /usr/local/bin/helm repo add kubesphere https://charts.kubesphere.io/main
- name: Update Helm repos
command: /usr/local/bin/helm repo update
- name: Install KubeSphere
command: /usr/local/bin/helm upgrade --install ks-core kubesphere/ks-core --namespace kubesphere-system --create-namespace
# - name: Install KubeSphere
# command: /usr/local/bin/helm upgrade --install ks-core kubesphere/ks-core --namespace kubesphere-system --create-namespace --set persistence.enabled=false --set auth.adminPassword=123456
- name: Verify installation
command: kubectl get pods -n kubesphere-system
手动部署
[root@master220 ~]# curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
[root@master220 ~]# helm repo add kubesphere https://charts.kubesphere.io/main
[root@master220 ~]# helm repo update
[root@master220 ~]# helm upgrade --install ks-core kubesphere/ks-core --namespace kubesphere-system --create-namespace