docker-machine-driver-hetzner icon indicating copy to clipboard operation
docker-machine-driver-hetzner copied to clipboard

Rancher - It is not possible to create Node/Clusters using RKE2/K3s, only RKE1 is available

Open BigBrather opened this issue 2 years ago • 6 comments

I can't create a Kubernetes Cluster on Hetzner Cloud using RKE2/K3s.

Here's an example, when I have RKE1 selected, I can create a Kubernetes Cluster: image

and

image

But when I select RKE2/K3s, the image on the Hetzner driver disappears:

image

After selecting Hetzner Cloud, I click continue, where I get to the next window, in which I save the values ​​​​and click continue, and I get into a loop, I add a variable through the file and when continuing, it says to add credentials again:

image

I have a question for the GitHub audience:

  1. Has anyone encountered this problem?

And also have a question for the driver developers:

  1. As I understand it, the problem here is the support for RKE2/K3s, is there a chance that it will appear for this driver in this bundle, like mine?

I am using Rancher v2.7.9 and Driver Hetzner v5.0.1.

BigBrather avatar Dec 04 '23 16:12 BigBrather

@BigBrather I have similar error with rancher v2.7.9 and Driver Hetzner v5.0.1

TheSigaro avatar Dec 04 '23 20:12 TheSigaro

Hi there. I have the same behavior with rancher v2.8.0 and v5.0.2 of Hetzner driver. Looking forward to an answer to @BigBrather's questions 🙂

gn-mtrlitza avatar Dec 21 '23 06:12 gn-mtrlitza

Hi, I had the same issue. The problem was, that I had to add Cloud credentials firstly. Screenshot 2024-01-29 at 15 49 04

After installing Hetzner driver, I didn't see Hetzner option for adding Cloud credential. I just did hard refresh of page and the Hetzner option has appeard.

Rancher version v.2.7.9 and v5.0.2 of Hetzner driver.

In short:

  1. Install Hetzner driver.
  2. Go to the Cloud credentials -> Create -> Select Hetzner (If you can't see hetzner, try to hard refresh page)
  3. Go to Clusters -> Create -> Select Hetzner (RKE2) [There is something wrong with logo image]
  4. Click create cluster

samo-mihal avatar Jan 29 '24 15:01 samo-mihal

Hi, I had the same issue. The problem was, that I had to add Cloud credentials firstly. Screenshot 2024-01-29 at 15 49 04

After installing Hetzner driver, I didn't see Hetzner option for adding Cloud credential. I just did hard refresh of page and the Hetzner option has appeard.

Rancher version v.2.7.9 and v5.0.2 of Hetzner driver.

In short:

  1. Install Hetzner driver.
  2. Go to the Cloud credentials -> Create -> Select Hetzner (If you can't see hetzner, try to hard refresh page)
  3. Go to Clusters -> Create -> Select Hetzner (RKE2) [There is something wrong with logo image]
  4. Click create cluster

It doesn't work for me, same versions as you Hetzen does not appear when updating.

image

BigBrather avatar Feb 05 '24 09:02 BigBrather

Try to install Hetzner Node driver using Local cluster not UI.

Steps:

  1. Uninstall existing Hetzner driver if it's already installed
  2. Go to Local cluster using Rancher
  3. Click import yaml in top right corner
  4. Paste and click import:
apiVersion: management.cattle.io/v3
kind: NodeDriver
metadata:
   annotations:
      lifecycle.cattle.io/create.node-driver-controller: "true"
      privateCredentialFields: apiToken
   generation: 13
   name: hetzner
spec:
   active: true
   addCloudCredential: false
   builtin: false
   checksum: ""
   description: ""
   displayName: hetzner
   externalId: ""
   uiUrl: https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js
   url: https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/5.0.2/docker-machine-driver-hetzner_5.0.2_linux_amd64.tar.gz
   whitelistDomains:
   - storage.googleapis.com

samo-mihal avatar Mar 10 '24 11:03 samo-mihal

Try to install Hetzner Node driver using Local cluster not UI.

Steps:

1. Uninstall existing Hetzner driver if it's already installed

2. Go to Local cluster using Rancher

3. Click import yaml in top right corner

4. Paste and click import:
apiVersion: management.cattle.io/v3
kind: NodeDriver
metadata:
   annotations:
      lifecycle.cattle.io/create.node-driver-controller: "true"
      privateCredentialFields: apiToken
   generation: 13
   name: hetzner
spec:
   active: true
   addCloudCredential: false
   builtin: false
   checksum: ""
   description: ""
   displayName: hetzner
   externalId: ""
   uiUrl: https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js
   url: https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/5.0.2/docker-machine-driver-hetzner_5.0.2_linux_amd64.tar.gz
   whitelistDomains:
   - storage.googleapis.com

Works great, thanks for providing this solution!

bartoszpijet avatar Mar 12 '24 13:03 bartoszpijet

Try to install Hetzner Node driver using Local cluster not UI.

Steps:

  1. Uninstall existing Hetzner driver if it's already installed
  2. Go to Local cluster using Rancher
  3. Click import yaml in top right corner
  4. Paste and click import:
apiVersion: management.cattle.io/v3
kind: NodeDriver
metadata:
   annotations:
      lifecycle.cattle.io/create.node-driver-controller: "true"
      privateCredentialFields: apiToken
   generation: 13
   name: hetzner
spec:
   active: true
   addCloudCredential: false
   builtin: false
   checksum: ""
   description: ""
   displayName: hetzner
   externalId: ""
   uiUrl: https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js
   url: https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/5.0.2/docker-machine-driver-hetzner_5.0.2_linux_amd64.tar.gz
   whitelistDomains:
   - storage.googleapis.com

Your solution works for me, now I can create RKE1 and RKE2. Thank you!

BigBrather avatar May 27 '24 11:05 BigBrather