IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    cluster-api-provider-vsphere 源码阅读

    Yiran\'s Blog发表于 2019-08-16 20:57:25
    love 0
    背景 链接到标题 上一篇博客讲了 Cluster-API 的相关概念,现在我们来找一个 provider 实现看看具体里面做了啥,因为对 vmware 产品中的概念比较熟悉,就找了 cluster-api-provider-vsphere 。 以下内容均对应 clusterapi v1alpha1 版本。 clusterctl 命令 链接到标题 cluster-api provider 提供了命令行 clusterctl 用于给我们快速创建 bootstrap 集群用于创建目标 k8s 集群,我们来执行一下看看具体做了哪些工作: root@yiran-workstation:~/go/src/github.com/kubernetes-sigs/cluster-api-provider-vsphere master ✗ $ clusterctl create cluster \ --provider vsphere \ --bootstrap-type kind \ --cluster ./out/management-cluster/cluster.yaml \ --machines ./out/management-cluster/machines.yaml \ --provider-components ./out/management-cluster/provider-components.yaml \ --addon-components ./out/management-cluster/addons.yaml \ --kubeconfig-out ./out/management-cluster/kubeconfig I0816 17:28:05.815156 14562 createbootstrapcluster.go:27] Preparing bootstrap cluster I0816 17:29:15.292547 14562 clusterdeployer.go:78] Applying Cluster API stack to bootstrap cluster I0816 17:29:15.


沪ICP备19023445号-2号
友情链接