is there a way to find out on which nodes did the pods got deployed from kubectl?
On 25 August 2016 at 22:28, Brandon Philips <brandon.phil...@coreos.com> wrote: > Yes, this looks roughly right. Did it work? We should probably write a doc > on this. > > On Thu, Aug 25, 2016 at 4:53 PM Norman Khine <nor...@khine.net> wrote: > >> so something like: >> >> apiVersion: extensions/v1beta1 >> kind: Deployment >> metadata: >> name: my-app >> labels: >> pod: app >> annotations: >> scheduler.alpha.kubernetes.io/affinity: > >> { >> "nodeAffinity": { >> "requiredDuringSchedulingIgnoredDuringExecution": { >> "nodeSelectorTerms": [ >> { >> "matchExpressions": [ >> { >> "key": "beta.kubernetes.io/instance-type", >> "operator": "In", >> "values": ["c4.large"] >> } >> ] >> } >> ] >> } >> } >> } >> spec: >> replicas: 1 >> template: >> metadata: >> labels: >> pod: app >> spec: >> containers: >> - image: redis >> name: "redis" >> ports: >> - containerPort: 6379 >> >> On 25 August 2016 at 20:48, 'David Oppenheimer' via Kubernetes user >> discussion and Q&A <kubernetes-users@googlegroups.com> wrote: >> >>> When you're running on GCE, GKE, or AWS, your nodes will be >>> automatically given a label with key "beta.kubernetes.io/instance-type" >>> and value being the instance type. So you can use node selectors to do what >>> you want; see http://kubernetes.io/docs/user-guide/node-selection/ >>> >>> On Thu, Aug 25, 2016 at 12:13 PM, Norman Khine <nor...@khine.net> wrote: >>> >>>> hello, >>>> i have couple of worker instances some are c4.large and others >>>> i2.xlarge what is the correct way to run specific pods in one instance >>>> type? >>>> >>>> any advice much appreciated >>>> >>>> -- >>>> 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 a topic in the >>> Google Groups "Kubernetes user discussion and Q&A" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/ >>> topic/kubernetes-users/_pEAEb9T_ck/unsubscribe. >>> To unsubscribe from this group and all its topics, 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. >>> >> >> >> >> -- >> %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) >> for c in ",adym,*)&uzq^zqf" ] ) >> >> -- >> 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 a topic in the > Google Groups "Kubernetes user discussion and Q&A" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/kubernetes-users/_pEAEb9T_ck/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] ) -- 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.