Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster initialization post initialization commands. #367

Closed
DeprecatedLuke opened this issue May 27, 2024 · 3 comments
Closed

Cluster initialization post initialization commands. #367

DeprecatedLuke opened this issue May 27, 2024 · 3 comments

Comments

@DeprecatedLuke
Copy link

DeprecatedLuke commented May 27, 2024

It would be great if there was a way to run post-install kubectl commands using the generated kubeconfig. Currently it can be performed with an external script so the priority for this is low.

Although it would be nice if it was possible to have a configuration option:

post_initialization_kubectl_commands:
- create -f https://raw.githubusercontent.com/projectcalico/calico/v3.28.0/manifests/tigera-operator.yaml

This would streamline any kind of post-initialization logic for the cluster itself rather than any particular node.

I would be happy to create a pull request for this if this is something that sounds like a good idea and others are interested in it.

@vitobotta
Copy link
Owner

Sorry for the delay, it looks like I missed some issues at a time I was super busy with work.

This is actually a lovely idea! If you can make a PR that would be welcome, otherwise I will implement it myself in 2.0.1 or 2.0.2. v2 is going to be released soon, probably next weekend.

@DeprecatedLuke
Copy link
Author

I swapped to mostly bash based installer so not really interested anymore considering it's a language I don't really know and there's several other problems such as determining when a cluster is ready to accept deployments since nodes will not be come ready until a CNI is present if default is disabled.

@vitobotta
Copy link
Owner

Thanks for letting me know.

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

No branches or pull requests

2 participants