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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值