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
kubectl cannot get flowschemas #87349
Comments
/sig api-machinery |
/cc @yue9944882 |
/assign @yue9944882 |
the "flowcontrol.apiserver.k8s.io" API group is not included in the list of known groups to register at startup: kubernetes/cmd/kube-apiserver/app/aggregator.go Lines 248 to 294 in 37d9c22
That means resources inside that group will not appear in discovery, and clients like kubectl will not know how to find them. |
You can see all resources visible via discovery by running |
just as @liggitt said, for now we have to manually create an apiservice into the cluster to get kubectl work. i dont think we're adding this to the list until the beta stage, can we make an exception for the case? @kubernetes/sig-api-machinery-misc
|
It is fine to add alpha things to the list I linked so they get created automatically if needed. They only get registered if the relevant runtime-config is enabled. |
What happened:
I am testing API Priority and Fairness. I launched it like this:
After the logging said the cluster is running and told me how to set KUBECONFIG, I did so in another shell and went looking for FlowSchema objects. But kubectl erroneously told me there is no such thing.
However, looking in the kube-apiserver log shows flowschemas and prioritylevelconfigurations being read and written; for example:
Also, I am able to read them with
curl
against the insecure port.Interestingly, the kube-apiserver log also includes this complaint:
I will attach the kube-apiserver log.
What you expected to happen:
I expected
kubectl get flowschemas
to list them.How to reproduce it (as minimally and precisely as possible):
I think the report above is pretty minimal.
Anything else we need to know?:
Environment:
Kubernetes version (use
kubectl version
): this is themaster
branch, git commit 916edd9Cloud provider or hardware configuration: bare metal, intel, 16 "CPUs", 64 GB of memory
OS (e.g:
cat /etc/os-release
): 18.04.2 LTS (Bionic Beaver)Kernel (e.g.
uname -a
): Linux mjs-dev-1 4.15.0-74-generic gofmt -s pkg/ cmd/ #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxInstall tools: hack/local-up-cluster.sh
Network plugin and version (if this is a network-related bug):
Others:
Docker version 18.09.7
go version go1.13.4 linux/amd64
kube-apiserver.log
The text was updated successfully, but these errors were encountered: