Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/configz doesn't work in 1.10 #61826

Closed
tianshapjq opened this issue Mar 28, 2018 · 8 comments
Closed

/configz doesn't work in 1.10 #61826

tianshapjq opened this issue Mar 28, 2018 · 8 comments
Assignees
Labels
sig/node Categorizes an issue or PR as relevant to SIG Node.

Comments

@tianshapjq
Copy link
Contributor

tianshapjq commented Mar 28, 2018

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened:
according to the Reconfigure a Node's Kubelet in a Live Cluster page, we can use /configz to fetch the whole config of kubelet. The question is, this API just reports 404 in 1.10 release which works fine in 1.8 in my setup.

What you expected to happen:
Is it not supported any more in the 1.10 release? Or just something wrong with my setup?

How to reproduce it (as minimally and precisely as possible):
try this command in this page:
curl -sSL http://localhost:8001/api/v1/proxy/nodes/${NODE_NAME}/configz
and it returns as follow:
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {

},
"status": "Failure",
"message": "the server could not find the requested resource",
"reason": "NotFound",
"details": {

},
"code": 404
}

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
    Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:55:54Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
  • Cloud provider or hardware configuration: bare metal
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

/sig node

@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Mar 28, 2018
@tianshapjq
Copy link
Contributor Author

appreciate if anyone can try the /configz API and feedback :)

@k8s-ci-robot k8s-ci-robot added sig/node Categorizes an issue or PR as relevant to SIG Node. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Mar 28, 2018
@phsiao
Copy link
Contributor

phsiao commented Mar 28, 2018

Can you verify if the feature gate is enabled?

@tianshapjq
Copy link
Contributor Author

tianshapjq commented Mar 29, 2018

@phsiao yes, still not working with the DynamicKubeletConfig on.
I created a config file with the followings:

kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
address: 0.0.0.0
staticPodPath: /etc/kubernetes/manifests
clusterDNS: [10.254.0.10]
clusterDomain: cluster.local
kubeReserved:
  cpu: 500m
  memory: 500Mi
systemReserved:
  cpu: 500m
  memory: 500Mi
failSwapOn: false
featureGates:
  DevicePlugins: false
  DynamicKubeletConfig: true

and dynamic-config-dir in the command line
the kubelet works fine and I'm sure the DevicePlugin doesn't work since the param has been set to false. But /configz still not works.

@CaoShuFeng
Copy link
Contributor

CaoShuFeng commented Mar 29, 2018

This url works fine for me:

https://<kebe-apiserver>:443/api/v1/nodes/<my-node>/proxy/configz

Ps:
I found a related issue when researching this:
#61883

@CaoShuFeng
Copy link
Contributor

CaoShuFeng commented Mar 29, 2018

/api/v1/proxy/nodes/${NODE_NAME}/configz/ is deprecated in 1.10.
Please use /api/v1/nodes/<my-node>/proxy/configz instead.

/close

@CaoShuFeng
Copy link
Contributor

ref:
#59884

@CaoShuFeng
Copy link
Contributor

/reopen

Reopen this issue because we have to update the document.

@k8s-ci-robot k8s-ci-robot reopened this Mar 29, 2018
CaoShuFeng added a commit to CaoShuFeng/kubernetes.github.io that referenced this issue Mar 29, 2018
k8s-ci-robot pushed a commit to kubernetes/website that referenced this issue Apr 9, 2018
@CaoShuFeng
Copy link
Contributor

/close

zacharysarah pushed a commit to kubernetes/website that referenced this issue Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/node Categorizes an issue or PR as relevant to SIG Node.
Projects
None yet
Development

No branches or pull requests

4 participants