-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
change pod from a node to another in runtime #105
Comments
I think you'll have to send that updated |
this way is good enough?
PS.: I did not understand all the parameters yet. |
Well I don't know what |
Hello again. package mainTest; import java.io.FileNotFoundException; import io.kubernetes.client.ApiClient;
and here, is what my console prints:
As you can see, It bugs the patch method where I want to update a pod. Can anyone help me? Ps.: If you want to see my second class... :
|
I have tried to use a example given here, in this page samples
OMG, What is going on? Here is the code:
|
Those example are auto-generated, and might not be great, sorry about that. Looks like You can also take a look at how I used the patch methods & generated the body using JsonDiff here. |
fwiw, I don't think patch is what you want here (it does a |
Mr. Wander, I was trying to copy your patchDeployment method, but I got a problem. Also, there is more one thing. These methods works with a Map[], but what is it? The Map I know is a Map< T , T >; Since now, I thank you for all your help |
If someone can see what is going on, I have made my code simpler with just 2 classes. Thank you all. |
@brendandburns makes a good point, you should be able to get away with calling |
I'm going to close this as it is a request for help rather than a true issue... |
(feel free to ask for more help and re-open, though, if need be) |
Hi everybody.
I saw in k8 tutorial that we can select the node where we want to deploy a pod. It is using the nodeSelector.
So, I am trying to change this property while my k8 application is running.
My main class has this code to set a new node selector:
`public class Test {
}`
And, my podAbstraction class, has the method updateNodeSelector(), which is:
Aparently it is now enough to make a pod leave on node to another (in my case, I am trying to move the pod
etcd-swarm1 from the node swarm1 to the node swarm5).
Finally, I got this message on my terminal after running this java-client program( I have abstracted some comands here):
As you can see, it has not been moved.
Does someone has any idea of how I can complete the task of moving a pod from a node to another one?
Thanks
The text was updated successfully, but these errors were encountered: