You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, when doing a fully automated install for example and specially wit Terraform/OpenTofu there is no nice way to retrieve the kubeconfig file stored in /etc/rancher/rke2/rke2.yaml. There are ways using a provisioner or some 3rd party ssh provider, but I think that is not the way one should work with Terraform/OpenTofu.
Describe the solution you'd like
I'm thinking of a way to use the RKE2 Token (which I generate in Terraform and pass via CloudInit to my VM's) and then to have an API Endpoint on the rke2 register interface (port 9345) to create or get a admin kubeconfig which then can be used in further steps (e.g. installing resources using the kubernetes / helm provider).
This discussion was converted from issue #6248 on June 25, 2024 14:54.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is your feature request related to a problem? Please describe.
Currently, when doing a fully automated install for example and specially wit Terraform/OpenTofu there is no nice way to retrieve the kubeconfig file stored in
/etc/rancher/rke2/rke2.yaml
. There are ways using a provisioner or some 3rd party ssh provider, but I think that is not the way one should work with Terraform/OpenTofu.Describe the solution you'd like
I'm thinking of a way to use the RKE2 Token (which I generate in Terraform and pass via CloudInit to my VM's) and then to have an API Endpoint on the rke2 register interface (port 9345) to create or get a admin kubeconfig which then can be used in further steps (e.g. installing resources using the kubernetes / helm provider).
Beta Was this translation helpful? Give feedback.
All reactions