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

Allow passing initial manifest to apply #30

Open
weibeld opened this issue Jan 14, 2023 · 0 comments
Open

Allow passing initial manifest to apply #30

weibeld opened this issue Jan 14, 2023 · 0 comments
Labels
Milestone

Comments

@weibeld
Copy link
Owner

weibeld commented Jan 14, 2023

Add an additional string input variable which may contain either a YAML or JSON Kubernetes manifest, or a URL to a manifest. This manifest is then applied from the master node (kubectl apply) immediately after bootstrapping the cluster.

This would allow, for example, to automatically install a CNI plugin in the cluster.

Notes:

  • It's important to also check the exit code of this command (see Detect failure in bootstrap scripts #21) and fail the Terraform run if it is unsuccessful (to detect that e.g. an invalid manifest has been passed).
  • kubectl apply -f is supposed to accept either a YAML or JSON file or a URL. So the value of the input variable can be passed as-is to kubectl apply.
@weibeld weibeld added the 0.3.0 label Jan 14, 2023
@weibeld weibeld added this to the 0.3.0 milestone Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant