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