-
Hello, I just started using this amazing tool for doing some tests. I'm trying to create a simple volume/pvc to make an app test. PVC: Pod: Shouldn't it create an Hetzner volume, attach it to a node, and then bind my PVC to this pv ? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments
-
Hi, Are you using the |
Beta Was this translation helpful? Give feedback.
-
Damn, fast answer haha. Sure, here are my manifests: PVC
StatefulSet:
❯ kubectl get nodes |
Beta Was this translation helpful? Give feedback.
-
I provided a quick response because I'm working a lot on hetzner-k3s at the moment for work :) Uh, I can't spot any obvious issues from the manifests. Could you describe the volume and see what info it gives you? Also, it might be worth checking the logs for the CSI pods, both the controller and the daemonset, which you can find in |
Beta Was this translation helpful? Give feedback.
-
❯ kubectl describe pvc player-service-database-pvc -n minecraft-staging
CSI node logs:
CSI Controller:
|
Beta Was this translation helpful? Give feedback.
-
IDK if the 60336815, and 60336814 are Hetzner volume IDs ? But there is nothing in hetzner cloud portal |
Beta Was this translation helpful? Give feedback.
-
Weird. If it was a problem with volume attachment you would see something in there. Are you sure there isn't something that is making the workload crash or something? |
Beta Was this translation helpful? Give feedback.
-
No It's just a fresh cluster created with the following config:
|
Beta Was this translation helpful? Give feedback.
-
Just for clarification, I shoudn't create an Hetzner volume or PV manually right ? |
Beta Was this translation helpful? Give feedback.
-
If you use a PVC, the volume is set up automatically for you. Can you see the volume in the Hetzner Console? If it’s a new setup, try deleting it and then give it another shot after making sure the volume isn’t listed in the Hetzner Console. I was thinking it might be a temporary glitch with the Hetzner API, but it should show something in the CSI logs. I am gonna do a quick test. |
Beta Was this translation helpful? Give feedback.
-
Damn, I just found I think, I copied my deployment from my previous cluster, but I had a nodeSelector |
Beta Was this translation helpful? Give feedback.
-
That wasn't displayed in my kube events, but it was under my eyes |
Beta Was this translation helpful? Give feedback.
-
😂 I guess we can close this then? |
Beta Was this translation helpful? Give feedback.
-
Just a simple question, can we prevent the deletion of hetzner volumes when we release the PVC ? If I delete a pvc for example^. I know there is a retainPolicy for PV, but for PVC nothing exists right? in the cluster creation there is a protect_against_deletion, but it's not documented |
Beta Was this translation helpful? Give feedback.
-
As far as I know, this depends on the By the way, I'm changing this issue to a discussion since it doesn't seem to be about a bug or problem with the tool. |
Beta Was this translation helpful? Give feedback.
As far as I know, this depends on the
reclaimPolicy
setting of the storage class you're using with the PVC. You might want to try creating a clone of thehcloud-volumes
storage class and set thereclaimPolicy
toRetain
to see if that helps.By the way, I'm changing this issue to a discussion since it doesn't seem to be about a bug or problem with the tool.