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: ""
复制代码

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

 

posted @   一石数字欠我15w!!!  阅读(814)  评论(7编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 如何使用 Uni-app 实现视频聊天(源码,支持安卓、iOS)
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
历史上的今天:
2018-01-25 vue入门-常用指令操作
点击右上角即可分享
微信分享提示