Thanks, I've added:
apiVersion: extensions/v1beta1 kind: Deployment metadata: name: worker spec: replicas: 1 template: metadata: labels: name: worker app: airflow tier: worker spec: hostname: worker-1 Once I have done that, how can I address the worker Pod from the web Pod ? What hostname should/can I use ? Must I also set a subdomain ? Thanks On Wednesday, January 18, 2017 at 10:10:23 AM UTC+1, Tim Hockin wrote: > > Its hostname doesn't work unless you follow the section "A Records and > hostname based on Pod’s hostname and subdomain fields" in > https://kubernetes.io/docs/admin/dns/ > > On Wed, Jan 18, 2017 at 12:24 AM, yazgoo <olivier.a...@teads.tv > <javascript:>> wrote: > > Hi, > > > > I've added, > > > > apiVersion: v1 > > kind: Service > > metadata: > > name: worker > > spec: > > clusterIP: None > > type: NodePort > > selector: > > app: worker > > ports: > > - name: worker > > protocol: TCP > > port: 8793 > > targetPort: flower > > nodePort: 32082 > > > > This does not seem to work, the issue being that the worker still > registers > > itself with it's hostname to the web UI. > > Any suggestion ? > > > > On Tuesday, January 17, 2017 at 5:56:02 PM UTC+1, Tim Hockin wrote: > >> > >> We don't do DNS for pods except for StatefulSets because it can change > >> rapidly, and DNS is just no good at that. You can set up a Service to > >> select all of the workers, and if you specify "None" as `clusterIP` > >> you won't get a VIP, just a bunch of A records. > >> > >> On Tue, Jan 17, 2017 at 8:49 AM, yazgoo <olivier.a...@teads.tv> wrote: > >> > Hi, > >> > > >> > I'm using airflow on GKE (kubernetes 1.4), more precisely this yaml : > >> > > >> > https://github.com/mumoshu/kube-airflow/blob/master/airflow.all.yaml > >> > > >> > My problem is that the web pod needs access to http logs from the > worker > >> > pod, which is equivalent to do, from the web pod, a: > >> > > >> > curl > >> > > >> > > http://worker-2088828153-64hkb:8793/log/dataflow_bigquery/dataflow_batch/2017-01-17T16:03:43.291968 > > >> > > >> > Which results in > >> > > >> > curl: (6) Could not resolve host: worker-2088828153-64hkb > >> > > >> > The worker pod registers itself via its hostname (via rabbitmq > AFAIK). > >> > > >> > Is there a way to have worker-2088828153-64hkb hostname available in > >> > kube-DNS ? > >> > > >> > If not, what DNS should I use ? How would I apply it as hostname to > the > >> > worker container ? > >> > Is there a way to list DNS entries ? > >> > > >> > I tried using hostNetwork: true with no success since there is > service > >> > discovery done via postgres, rabbitmq hostnames and that becomes > >> > unavailable > >> > then: > >> > > >> > > https://github.com/mumoshu/kube-airflow/blob/master/script/entrypoint.sh > >> > > >> > 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-use...@googlegroups.com. > >> > To post to this group, send email to kubernet...@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-use...@googlegroups.com <javascript:>. > > To post to this group, send email to kubernet...@googlegroups.com > <javascript:>. > > 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.