-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
v1.27.0 kube-apiserver restart failed after edit yaml file (add --token-auth-file
)
#121961
Comments
/sig Auth |
1.25 is not in support. is the problem reproducible with newer k8s? |
/sig api-machinery |
I reproduced it on v1.27.0. @neolit123 |
--token-auth-file
)
Problem solved. I noticed
Then I realized kube-apiserver's args with file must read path only from one of
It works. PS: below are some experiences i got from when i troubleshooting:
|
i was about to post that, yes you must mount a dir or a file in the static pod container. for support in the future please use #kubeadm on the k8s slack or other support channels. |
/triage accepted |
What happened?
I did:
/etc/kubernetes/manifests/kube-apiserver.yaml
edit part:
Then kube-apiserver pod Exited! it reported
no such file...
for token-auth-file added:What did you expect to happen?
kube-apiserver pod restart normally, not
Exited
status!How can we reproduce it (as minimally and precisely as possible)?
Just do as i described above.
Anything else we need to know?
No
Kubernetes version
Cloud provider
OS version
➜ practice cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
➜ practice uname -a
Linux k8s-master 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: