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
原文地址:https://blog.csdn.net/qq_43527128/article/details/143053799
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!