You haven't really explained what you are trying to do.  The question
you are asking is hard to answer because it indicates some
misunderstanding deeper down.  What are you trying to achieve?

On Sun, Aug 6, 2017 at 2:35 AM,  <shayb...@gmail.com> wrote:
> OK so how do i create deployment with 1 POD on node1 and then move the POD to 
> node2?
>
> ------------------------
> apiVersion: extensions/v1beta1
> kind: Deployment
> metadata:
>  name: rss-site
> spec:
>  replicas: 2
>  template:
>    metadata:
>      labels:
>        app: web
>    spec:
>     - name: con-name
>       image: ubuntu
>     nodeSelector:
>       kubernetes.io/hostname: node1
> ------------------------
>
> kubectl create file.yml
>
> And now is the question - how can i move the POD from node1 to node2?
> should i delete the deployment and create it again with nodeSelector node2 OR 
> there is better way just to update the deployment\POD to be locate on node2 
> instead of node1?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
  • [kubernetes... shaybery
    • Re: [k... 'David Oppenheimer' via Kubernetes user discussion and Q&A
      • Re... Rodrigo Campos
      • Re... shaybery
        • ... Shrinand Javadekar
        • ... 'Tim Hockin' via Kubernetes user discussion and Q&A

Reply via email to