godaddy/kubernetes-client

watch jobs with a hostname labelselector

Open

#374 aperta il 18 dic 2018

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (206 fork)batch import
help wantedquestionrequest for example

Metriche repository

Star
 (954 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Writing code like this:

const jobStream = client.apis.batch.v1.watch.jobs.getStream({ qs: { labelSelector: 'kubernetes.io/hostname=ip-10-0-22-120.us-west-2.compute.internal'}});

Doesn't work. Basically trying to watch all jobs on a host by host basis from a kubernetes daemonset. Tried to manually add a label with the spec.nodeName via the downward api but that doesn't appear to work in the JSON only via the volume api.

Open to ideas!

Thanks!

Guida contributor