Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

[feautre] Make ClusterConfiguration variable #36

Open
chifu1234 opened this issue Sep 18, 2021 · 1 comment
Open

[feautre] Make ClusterConfiguration variable #36

chifu1234 opened this issue Sep 18, 2021 · 1 comment

Comments

@chifu1234
Copy link

Currently there is no option the handle any special configuration for the cluster (for example to enable oidc).
By making ClusterConfiguration variable you can setup the kubernetes cluster as you like.

Proposal:
1.) Handling ClusterConfiguration with https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm#ClusterConfiguration struct not as string
2.) Update Object CLusterConfiguraiton with user input from kubicctl.conf key ClusterConfiguration
3.) Update Object ClusterConfiguration with

_, err = f.WriteString("apiVersion: kubeadm.k8s.io/v1beta2\nkind: ClusterConfiguration\nkubernetesVersion: " + kubernetes_version + "\ncontrolPlaneEndpoint: \"" + in.MultiMaster + ":6443\"\n")
Multimaster
4.) Write Object ´/var/lib/kubic-control/clusterconfiguration.yaml`
5.) update kubeadm args with new location

If you like I can implement my proposal and create a mr?

@thkukuk
Copy link
Owner

thkukuk commented Sep 20, 2021

I'm currently busy with other things and have no time for kubic-control, but Patches are always welcome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants