Comments (7)
I opened a PR #61 that adds the feature, I still have to test it :D
from terraform-provider-k0s.
PR #61 has been merged, release coming soon
from terraform-provider-k0s.
@andyrue at the moment, nothing native with terraform.
For the time being I've been:
- Generating a
k0sctl.yaml
file using terraform's yamlencode function. - Running
k0sctl apply --kubeconfig-out kubeconfig.yaml --no-wait
manually in the terminal (you could replace this with a null_resource and a local-exec provisioner) - Parsing the
kubeconfig.yaml
file using the file & yamldecode functions, then passing that data to the kubernetes & helm terraform providers.
from terraform-provider-k0s.
Thanks @alessiodionisi, I was able to successfully setup the k0s cluster using the new no_wait
flag!
from terraform-provider-k0s.
There doesn't seem to be a way to set it.
Here is how it's set in k0sctl
:
https://github.com/k0sproject/k0sctl/blob/04a76d8461934b92ed77d89bebb2cc90a5afce89/cmd/apply.go#L60
I guess this is where it should be set in terraform-provider-k0s
but it's not:
terraform-provider-k0s/internal/provider/cluster_resource.go
Lines 310 to 344 in ad29155
from terraform-provider-k0s.
Is there a workaround for this until the fix is released?
from terraform-provider-k0s.
Released now with v0.2.0: https://github.com/alessiodionisi/terraform-provider-k0s/releases/tag/v0.2.0
https://registry.terraform.io/providers/alessiodionisi/k0s/latest/docs/resources/cluster#no_wait
from terraform-provider-k0s.
Related Issues (10)
- Add support for SSH password instead of keys
- init fails HOT 1
- How to get the cluster_provider to work HOT 5
- Provider fails with more than 1 host without a private address
- plugin panics when the architecture is ARM64 HOT 7
- Export an output variable with the full k0sctl.yml file content HOT 2
- Get access data (kubeconfig or equivalent) HOT 3
- Feature Request: Ability to pass ssh key value directly instead of `key_path`
- Node removal not supported, however it "works" in unexpected manner HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-k0s.