k8s可視化平台搭建


官網:https://kubesphere.io/zh/

安裝:https://kubesphere.io/zh/docs/quick-start/all-in-one-on-linux/

安裝擴展:https://kubesphere.io/zh/docs/pluggable-components/uninstall-pluggable-components/

集群多節點配置:https://kubesphere.io/zh/docs/installing-on-linux/introduction/vars/

GitHub:https://github.com/kubesphere/kubesphere

 

 

硬件最好8核16G。局域網服務器需要正常鏈接外網。

超級好用。還免費!

目前只部署了一台單節點的。多節點的按照文檔配置就好。soeasy。

可以后期將自己的項目遷移至k8s

自己搭建的單節點服務器。看着頁面就讓人如痴如醉

默認搭建的是單節點集群,可以通過修改配置文件。重載的方式加入多集群

apiVersion: kubekey.kubesphere.io/v1alpha1
kind: Cluster
metadata:
  name: sample
spec:
  hosts:
  ##You should complete the ssh information of the hosts
  - {name: master, address: 172.31.107.210, internalAddress: 172.31.107.210}
  - {name: node1, address: 172.31.107.211, internalAddress: 172.31.107.211, user: ubuntu, password: ·····}
  roleGroups:
    etcd:
    - master
    master:
    - master
    worker:
    - master
    - node1
  controlPlaneEndpoint:
    ##Internal loadbalancer for apiservers
    #internalLoadbalancer: haproxy

    ##If the external loadbalancer was used, 'address' should be set to loadbalancer's ip.
    domain: lb.kubesphere.local
    address: ""
    port: 6443
  kubernetes:
    version: v1.21.5
    clusterName: cluster.local
    proxyMode: ipvs
    masqueradeAll: false
    maxPods: 110
    nodeCidrMaskSize: 24
  network:
    plugin: calico
    kubePodsCIDR: 10.233.64.0/18
    kubeServiceCIDR: 10.233.0.0/18
  registry:
    privateRegistry: ""

剩下的就是把自己的代碼放進去了。如果放進去。就完美了! 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM