Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version: v1.11
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS: CentOS Linux release 7.6.1810 (Core)
CNI and version: 0.2.0
CRI and version:
Hi Guy,
May I ask that does Kubernetes can migrate the pod to other node server?
[root@m11 ~]# kubectl get pod -o wide | grep ldap
ldap-0 3/3 Running 3 4d 10.129.3.119 n13
ldap-1 3/3 Running 3 4d 10.130.3.1 n12
Let say ldap-0 to n11 node computer?
Regards
Thanks…KEN
If you want it on a specific node, you can set pod.spec.nodeName yourself, or use a node label selector.
If you just want it rescheduled, just delete the pod (assuming it has a deployment controller or something like that).
Hi thockin,
Sorry, can’t upload text ask new user can put only 5 links.
Regards
Thanks…KEN
1 Like
You’re on the right track, but you can’t modify pods themselves - you
have to modify whatever workload controller owns them. For example,
if they were run by a Deployment or something, you can modify that
template, which will cause the pods to be re-deployed.
Now, one might ask WHY you want to bind them to a specific host…
Hi thockin,
It is because the kubernets networking issue in my end, as the container running on compute node 1 seems have network issue, so I try to migrate the container to compute node 2 for testing, but finally it seems same issue even moved to node 2.
Regards
thanks…KEN