Here is the envisionned commands:
init: Creation of the configuration file.
prepare: Download the related images (this would need to be able to store them in containerd format).
configure: Configure the local vm (or better config).
start: start the cluster.
kustomize: Perform the cluster kustomization.
stop: stop the cluster.
status: status of the cluster (already existing).
reset: reset the cluster.
destroy: destroy the cluster. In particular, clear the etcd data and delete the cluster's PKI.
In particular, currently the service starts with the init command and it should be the start command. The current configure command needs to become the kustomize command.
Maybe the prepare command should make the appropriate vm configuration, that is:
- Make sure the needed kernel modules are loaded.
- Check that the API server ip address is bound to the main interface.
- Check that the cluster domain name is properly mapped to the ip address.
- Prevent the kubelet from starting as an OpenRC service.
- Ensure that Iknite is started by OpenRC.
Here is the envisionned commands:
init: Creation of the configuration file.prepare: Download the related images (this would need to be able to store them in containerd format).configure: Configure the local vm (or betterconfig).start: start the cluster.kustomize: Perform the cluster kustomization.stop: stop the cluster.status: status of the cluster (already existing).reset: reset the cluster.destroy: destroy the cluster. In particular, clear the etcd data and delete the cluster's PKI.In particular, currently the service starts with the
initcommand and it should be thestartcommand. The currentconfigurecommand needs to become thekustomizecommand.Maybe the
preparecommand should make the appropriate vm configuration, that is: