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

error: configmaps "extension-apiserver-authentication" not found #26

Open
Blue-Skies-firststar opened this issue Dec 7, 2018 · 2 comments

Comments

@Blue-Skies-firststar
Copy link

I1207 09:53:35.292482 1 request.go:836] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"configmaps "extension-apiserver-authentication" not found","reason":"NotFound","details":{"name":"extension-apiserver-authentication","kind":"configmaps"},"code":404}
W1207 09:53:35.292976 1 authentication.go:231] Unable to get configmap/extension-apiserver-authentication in kube-system. Usually fixed by 'kubectl create rolebinding -n kube-system ROLE_NAME --role=extension-apiserver-authentication-reader --serviceaccount=YOUR_NS:YOUR_SA'
Error: configmaps "extension-apiserver-authentication" not found

@Blue-Skies-firststar
Copy link
Author

Blue-Skies-firststar commented Dec 7, 2018

when I kubectl create -f ./custom-metrics-api ,but custom-metrics-apiserver-7699788d76-2drbd CrashLoopBackOff , this is my k8s cluster Configuration

cat /etc/kubernetes/apiserver

KUBE_API_ADDRESS="--insecure-bind-address=0.0.0.0"
KUBE_API_PORT="--insecure-port=8080"
KUBE_ETCD_SERVERS="--etcd-servers=http://192.168.1.1:2379"
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"
KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota"
KUBE_API_ARGS="--enable-swagger-ui=true --allow_privileged=true --secure-port=443 --requestheader-allowed-names=aggregator --requestheader-extra-headers-prefix=X-Remote-Extra- --requestheader-group-headers=X-Remote-Group --requestheader-username-headers=X-Remote-User --enable-aggregator-routing=true"
KUBE_API_LOG="--logtostderr=false --log-dir=/data/log/kubernets --v=2"

@Blue-Skies-firststar
Copy link
Author

cat /etc/kubernetes/controller-manager
KUBE_CONTROLLER_MANAGER_ARGS="--master=http://192.168.1.1:8080 --cluster-cidr=10.1.0.0/16 --allocate-node-cidrs=true --logtostderr=true --log-dir=/data/log/kubernets --v=2 --root-ca-file=/var/run/kubernetes/apiserver.crt --service_account_private_key_file=/var/run/kubernetes/apiserver.key --leader-elect=true --horizontal-pod-autoscaler-use-rest-clients=true"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant