Behaviour of CAPI KamajiControlPlane provider when no infrastructure is used #174
-
Hello everyone! As I stated in this discussion, #88 (reply in thread), I’m trying to understand how CAPI works and the building blocks that compose it while using Kamaji provider. My idea is to use the CAPI operator to create a Kamaji control plane. I’m going to leave the infrastructure part empty because I want to manage the workers independently. In my management cluster, I installed the CAPI operator using Helm and then installed the provider using this YAML manifest: apiVersion: operator.cluster.x-k8s.io/v1alpha2
kind: ControlPlaneProvider
metadata:
name: kamaji
namespace: capi-operator-system
spec:
manager:
featureGates:
SkipInfraClusterPatch: true It’s important to highlight the fact that I used the feature gate to be able to deploy the control plane without the obligation to specify an infrastructure provider (see PR #147). Once that part is working correctly, I created a apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: test-kamaji
namespace: default
spec:
clusterNetwork:
pods:
cidrBlocks:
- 10.244.0.0/16
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1alpha1
kind: KamajiControlPlane
name: test-kamaji-control-plane
---
apiVersion: controlplane.cluster.x-k8s.io/v1alpha1
kind: KamajiControlPlane
metadata:
name: test-kamaji-control-plane
namespace: default
spec:
addons:
coreDNS: {}
controlPlaneEndpoint:
host: 172.22.3.30
port: 6443
dataStoreName: default
kubelet:
cgroupfs: systemd
preferredAddressTypes:
- InternalIP
network:
serviceType: ClusterIP
replicas: 3
version: 1.30.0 As far as I understand, once the KamajiControlPlane is deployed,
As the feature gate is enabled, After seeing that, I don't see benefit of PR #137. What problem does solve including Sorry for my ignorance. I just started learning about CAPI and some of the concepts are a little bit confusing for me. Thanks for your help and time! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Managing worker nodes still requires an Infrastructure Cluster, AFAIK. Have you already picked up an infrastructure provider for worker nodes? According to your needs, Cluster API could be too much of overhead since it's designed to manage the entire lifecycle of a cluster. |
Beta Was this translation helpful? Give feedback.
As described earlier, it's useful if you have your own custom infrastructure provider and rely on retrieving the Control Plane provider. It's an advanced flag for Cluster API infrastructure developers.