Page MenuHomePhabricator

Namespaces not found (pykube, kubernetes)
Closed, DuplicatePublic


hi, i have created new tool (wdq_checker), becoming as this tool and after cmd webservice —backend=kubernetes python shell i have err: "pykube.exceptions.HTTPError: namespaces "wdq_checker" not found" - there is problem in my setup? i dont know, where is the mistake and not found some informations at phabricator or google … sorry. Thanks!

after that i create new tool "Fretties" and there is webservice --backend=kubernetes .... is clear and complete right.

Traceback (most recent call last):

File "/usr/local/bin/webservice", line 140, in <module>
  start(job, 'Starting webservice')
File "/usr/local/bin/webservice", line 31, in start
File "/usr/lib/python2.7/dist-packages/toollabs/webservice/backends/", line 383, in request_start
  pykube.Deployment(self.api, self._get_deployment()).create()
File "/usr/lib/python2.7/dist-packages/pykube/", line 76, in create
File "/usr/lib/python2.7/dist-packages/pykube/", line 104, in raise_for_status
  raise HTTPError(payload["message"])

pykube.exceptions.HTTPError: namespaces "wdq_checker" not found

Event Timeline

chasemp subscribed.

IIUC from reading on IRC this is due to k8s not understanding namespaces with an underscore. What ended up happening here?