JonasProgrammer / docker-machine-driver-hetzner

Docker machine driver for the new hetzner cloud API
https://jonasprogrammer.github.io/docker-machine-driver-hetzner/
MIT License
434 stars 54 forks source link

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

Closed BigBrather closed 6 months ago

BigBrather commented 11 months ago

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.

TheSigaro commented 11 months ago

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

gn-mtrlitza commented 11 months ago

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 🙂

samo-mihal commented 10 months ago

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
BigBrather commented 9 months ago

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

samo-mihal commented 8 months ago

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
bartoszpijet commented 8 months ago

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!

BigBrather commented 6 months ago

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!