Hack 1: Create k8s cluster using Sovereign Cloud Stack (SCS)
Hacker prerequisites
- OpenStack project credentials (on demand)
- Terraform
Documentation
Description
Using SCS k8s-cluster-api-provider it is possible create management cluster - KinD running on an OpenStack instance. Management cluster is then used to manage workload clusters using Cluster API.
We already tested Cluster API with OpenStack provider on local KinD as management cluster, here's how we proceeded:
-
Cluster API version 1.0.x (failed)
- OpenStack provider is not ready yet. It is still in v0.4.x.
- v1beta1 vs v1alpha4 error is a showstopper here.
- For further details see capi_v1_0.md
-
Cluster API version 0.4.x (failed)
- Cannot create cluster w/o LB due to the 'failed to create load balancer service' error
- ManagedAPIServerLoadBalancer flag doesn't work as expected, see issue
- Fix of above issue was merged on Sep 1 (v0.4.0 was released on Jul 20)
- For further details see capi_v0_4.md
- Cannot create cluster w/o LB due to the 'failed to create load balancer service' error
-
Cluster API version 0.3.x (success)
- We are able to create a k8s cluster (without-lb, 1master+1worker)
- For further details see capi_v0_3.md
Based on above we highly recommend to use Cluster API version 0.3.x. Use your Terraform knowledge and provide necessary modification in SCS provider source code.
Hack the SCS provider and create k8s workload cluster in OpenStack infrastructure.
Edited by Martin Pilka