Kubectl не показывает статус компонента - PullRequest
0 голосов
/ 04 ноября 2019

Попытка установить Kubernetes 1.16.2 из двоичных файлов, и я вижу эту проблему, когда пытаюсь проверить состояние компонента.

Объект Response показывает, что все исправны, но таблица ниже показывает неизвестные.

root@instance:/opt/configs# kubectl get cs -v=8
I1104 05:54:48.554768   25209 round_trippers.go:420] GET http://localhost:8080/api/v1/componentstatuses?limit=500
I1104 05:54:48.555186   25209 round_trippers.go:427] Request Headers:
I1104 05:54:48.555453   25209 round_trippers.go:431]     Accept: application/json;as=Table;v=v1beta1;g=meta.k8s.io, application/json
I1104 05:54:48.555735   25209 round_trippers.go:431]     User-Agent: kubectl/v1.16.2 (linux/amd64) kubernetes/c97fe50
I1104 05:54:48.567372   25209 round_trippers.go:446] Response Status: 200 OK in 11 milliseconds
I1104 05:54:48.567388   25209 round_trippers.go:449] Response Headers:
I1104 05:54:48.567392   25209 round_trippers.go:452]     Cache-Control: no-cache, private
I1104 05:54:48.567395   25209 round_trippers.go:452]     Content-Type: application/json
I1104 05:54:48.567397   25209 round_trippers.go:452]     Date: Mon, 04 Nov 2019 05:54:48 GMT
I1104 05:54:48.567400   25209 round_trippers.go:452]     Content-Length: 661
I1104 05:54:48.567442   25209 request.go:968] Response Body: {"kind":"ComponentStatusList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/componentstatuses"},"items":[{"metadata":{"name":"etcd-0","selfLink":"/api/v1/componentstatuses/etcd-0","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"True","message":"{\"health\":\"true\"}"}]},{"metadata":{"name":"controller-manager","selfLink":"/api/v1/componentstatuses/controller-manager","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"True","message":"ok"}]},{"metadata":{"name":"scheduler","selfLink":"/api/v1/componentstatuses/scheduler","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"True","message":"ok"}]}]}
I1104 05:54:48.567841   25209 table_printer.go:44] Unable to decode server response into a Table. Falling back to hardcoded types: attempt to decode non-Table object into a v1beta1.Table
I1104 05:54:48.567879   25209 table_printer.go:44] Unable to decode server response into a Table. Falling back to hardcoded types: attempt to decode non-Table object into a v1beta1.Table
I1104 05:54:48.567888   25209 table_printer.go:44] Unable to decode server response into a Table. Falling back to hardcoded types: attempt to decode non-Table object into a v1beta1.Table
NAME                 AGE
etcd-0               <unknown>
controller-manager   <unknown>
scheduler            <unknown>

1 Ответ

0 голосов
/ 04 ноября 2019

Похоже, что существует проблема с преобразователем таблиц для статуса компонента, особенно в k8s версии 1.16.2. Уже существует PR, поднятый для решения этой проблемы. Перейдите и проследите за ссылкой

-> https://github.com/kubernetes/kubernetes/issues/83024

...