godaddy/kubernetes-client

watch jobs with a hostname labelselector

Open

#374 创建于 2018年12月18日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (954 star) (206 fork)batch import
help wantedquestionrequest for example

描述

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!

贡献者指南