How To Create, Provision, And Operate Kubernetes With Cluster API (CAPI)

How To Create, Provision, And Operate Kubernetes With Cluster API (CAPI)

DevOps Toolkit

3 года назад

16,480 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@sriluxman
@sriluxman - 13.12.2021 23:27

Testing a comment without link

Ответить
@holgerwinkelmann6219
@holgerwinkelmann6219 - 14.12.2021 01:00

Can you please show how crossplane can create a cluster from scratch? without a managed k8s cluster. I have not seen it in crossplane, expect that crossplane integrates CAPI to create and operate a cluster,

Ответить
@pierreyves.lebrun
@pierreyves.lebrun - 14.12.2021 05:23

Awesome! I was really looking forward to seeing you talk about cluster API!

Ответить
@vrabbi
@vrabbi - 14.12.2021 21:40

ClusterClass in CAPI solves the issues that you brought up in the video. Its new and not all providers support it yet, but its a single crd to create a cluster and a single place to upgrade the version. For CNI you can also have it installed automatically via the ClusterResourceSet feature in CAPI

Ответить
@vrabbi
@vrabbi - 14.12.2021 21:43

You can also provision AKS via CAPI in terms of managed clusters

Ответить
@vrabbi
@vrabbi - 14.12.2021 21:47

Its also interesting that almost all multi cloud commercial offerings for k8s are based in CAPI today:
Vmware TKG
Rancher
Google Anthos
Amazon EKS-A
OpenShift (partial implementation as they are only using the machine API from CAPI)

Ответить
@dreamcat4
@dreamcat4 - 15.12.2021 00:28

thank you. while watching this video it really made me think more deeply about the types of abstraction i really want from all this kubernetes stuff, all this cloud providers and generally devops api. and it ultimately should come down to seeking 2 things. one of them is costs of services. and the other one is performance provided for those costs. and it should all be through a standardized single grpc api. so in my mind the problem is then a lack of standardization across providers. across these platforms. and maybe kubernetes cluster api and crossplane is a step in the right direction. or using openshift etc.

however i dont think the transparency and coherency is there to provider QoS guarantees or smart automatic billing contract built into the charging sytem over these same apis. for when the service provided is either better or worse than expected. and for to set upper and lower limits we are talking how many nodes here. rather than how many dollars. or how long the ping time. or other network bandwidth metrics etc. across these same api. and indistinguishable between the provider. it seems like a difficult problem to solve. i suppose there is kubecost however it is in itself another seperate 3rd party service to setup, manage and configure. hmm, but i wonder if it is a place to start at. when dreaming up such kinds of mythical grpc apis. and along that journey, to also be examining which common cloud apis are the most coherent / commonly shared. the scope is broad ranging. i wonder how much is not possible to be covered within the domain of kubernetes itself. and it also makes me wonder the true value of all these different things

Ответить
@jlan421
@jlan421 - 15.12.2021 18:07

Viktor, great insights as always, speaking of CAPI, any chance that you can do a demo on Anthos or TKG/TCE? wanted to to know if those are great alternatives than implementing by itself.

Ответить
@eavesdropping1621
@eavesdropping1621 - 13.02.2022 08:07

I created kind cluster. I did clutserctl init. Now I run the command `clusterctl generate cluster capikind --kubernetes-version v1.23.3 --control-plane-machine-count=3 --worker-machine-count=3 > capi-kind.yaml`. It shows `Error: failed to identify the default infrastructure provider. Please specify an infrastructure provider`. I'm not using infrastructure. I'm using kind cluster. What infrastructure provider should I specify?

Ответить
@dipendrachaudhary3601
@dipendrachaudhary3601 - 18.02.2022 18:02

what if we dont pass `--infrastructure digitalocean` while generating yaml file? whats the difference?

Ответить
@thomasguttler5179
@thomasguttler5179 - 29.12.2022 14:03

One year later, I see that cluster API is getting more popular. Many providers support it. And the list is getting longer.

Is there a way to use cluster API via Crosspläne?

Ответить
@lamnot.
@lamnot. - 17.01.2023 17:36

@DevOpsToolkit, If CAPI can bootstrap Crossplane, and then Crossplane can bootstrap Talos, wouldn't this become a golden path for IDP/PaaS?

Ответить
@lamnot.
@lamnot. - 17.01.2023 20:32

The CABPT project uses CAPI to bootstrap a Talos K8S cluster, from there it's trivial to bootstrap Crossplane, and then using Crossplane as a CAPI provider to boostrap additional K8S clusters, I think.

Ответить
@utkarshmishra3125
@utkarshmishra3125 - 19.05.2023 08:47

cluster api not able to reconcile for docker infrastructure provider, I have created a k8s cluster using kind.

Initialized it using clusterctl init --infrastructure docker and apply one CAPI manifest for 3 control-node + 3 worker node. It was successfully deployed, all the machines were up (docker containers).

After that I am trying to test the benefits of doing this whole thing using CAPI (Reconciliation, full lifecycle management of workload clusters).

For that I stopped 1 container(worker node machine), So even though Cluster CAPI detects the change and starts the reconciliation process (this I can say by checking the capd-controller-manager pod logs, it was not able to set up the worker node. I expected it to launch another container and add it to the cluster but it's not able to do that.

There is no issue with memory, I have increased the inotify limit.
Please help me debug.

Ответить
@debkr
@debkr - 03.06.2023 01:14

Thanks for this video :) Can you make an updated version of this video please? Or can you just mention in the reply what is the current state CAPI? Are the CONS mentioned here been solved. Most importantly cluster update/upgrade?

Ответить
@mzs114
@mzs114 - 01.12.2023 16:44

Can you please compare this with another project? Like, Gardener.

Ответить
@rtacconi
@rtacconi - 01.12.2023 18:44

I managed to hack his cluster

Ответить
@shashidharpatil9388
@shashidharpatil9388 - 05.02.2024 09:06

Hey, I have an already running cluster, I would like to register it with the cluster APi, how do I do that ?

Ответить
@bkahlerventer
@bkahlerventer - 06.03.2024 06:29

I like the idea of clusterapi by create new nodes and replace them. I upgraded linux nodes in-place for a long time and kubernetes clusters in place recently. The short version: in-place upgrades suck, replacing nodes is much better

Ответить
@jonassteinberg3779
@jonassteinberg3779 - 13.12.2024 16:58

WHY DIDN'T YOU DEPLOY THIS IN MY MOM'S BASEMENT YOU'RE BIASED AGAINST MY MOM'S BASEMENT!!!

Ответить
@llesomora
@llesomora - 14.03.2025 21:51

Is it still valid to use Cluster API to manage multiple clusters? Are there any books or tips I can use to learn more about it?

The video is amazing! thanks

Ответить
@Suhgas
@Suhgas - 19.04.2025 21:30

I forgot to include the infra [whatever] namespace in the clusterctl generate command. This will cause bootstrap issues in kubeadmcontrolplane initializing?. have my own custom image i created for kubenetes clusterctl and have bootstraping issues

Ответить
@vitusyu9583
@vitusyu9583 - 24.05.2025 17:21

digital ocean is expensive

Ответить