-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default Node Affinity doesn't match on node created by AWS (provider Amazon EC2) #68
Comments
We're experiencing the same issue. The PV is provisioned correctly but the node affinity label is not correct and there's no way to change it. Any advice or workarounds here? |
Follow up here: the problem (at least for our cluster) is that local-path-provisioner isn't working with the Rancher node pool way of setting the When using node pools RKE is setting This obviously conflicts with what local-path-provisioner is expecting as a value. So it appears we need a way to specify a label to use for node affinity or a way to modify what RKE uses to set the value of Any thoughts on this @yasker? |
@peregrinator Thanks for the analysis. It sounds like this line is the culprit: local-path-provisioner/provisioner.go Line 179 in 655eac7
Currently, we just use But I am busy with the upcoming Longhorn GA at the moment, so I won't able to address this issue anytime soon. It would be great if someone else can help. |
/assign |
I can try to work on this @yasker |
It's done from here #186 |
Basic Info:
Rancher Version: 2.3.2
Kubernetes Version: v1.16.3-rancher1-1
Provider: Amazon EC2
Brief Description:
Pod which used the PVC created by this module cannot be scheduled due to the auto-generated PV's Node Affinity Rule:
kubernetes.io/hostname
={{someNodeName}}
doesn't match with the actual value of the node.How to reproduce
volume-test
cannot be scheduled with this message:More description
The Persistent Volume which is created by this module has the
kubernetes.io/hostname
value which is equal to thePrivate DNS
value of the instance that run. But actually thekubernetes.io/hostname
label has a value of the instance's name and cannot be editedMore image:
AWS Instance board:
![AWS Instance board](https://user-images.githubusercontent.com/40750611/71898308-93e9a700-318b-11ea-860c-082d9d04db7c.PNG)
Node's label:
![Node's label](https://user-images.githubusercontent.com/40750611/71898332-a1069600-318b-11ea-9afb-c5465ec1be21.PNG)
Node Affinity from the PV:
![Capture3](https://user-images.githubusercontent.com/40750611/71898477-fd69b580-318b-11ea-99ac-b92446ec040c.PNG)
The text was updated successfully, but these errors were encountered: