好友
阅读权限10
听众
最后登录1970-1-1
|
cdbdy
发表于 2024-5-21 11:07
25吾爱币
本人是一名学校k8s的新手,目前根据b站尚硅谷视频进行一步步搭建,已经搭建好etcd集群并正常运行,目前在部署kube-apiserver的时候一直启动不起了,报错,国内外网都找遍了,也问了gpt4,但就是找不到解决原因,求助大佬。etcd正常,证书自签的也是正常的,不知道该怎么继续下去了
[root@node1 ~]# /opt/kubernetes/bin/kube-apiserver --logtostderr=false --v=2 --log-dir=/opt/kubernetes/logs --etcd-s ervers=https://192.168.148.128:2379,https://192.168.148.130:2379,https://192.168.148.131:2379 --bind-address=192.168 .148.130 --secure-port=6443 --advertise-address=192.168.148.130 --allow-privileged=true --service-cluster-ip-range=1 0.0.0.0/24 --enable-admission-plugins=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota,NodeRestriction -- authorization-mode=RBAC,Node --enable-bootstrap-token-auth=true --token-auth-file=/opt/kubernetes/cfg/token.csv --se rvice-node-port-range=30000-32767 --kubelet-client-certificate=/opt/kubernetes/ssl/server.pem --kubelet-client-key=/ opt/kubernetes/ssl/server-key.pem --tls-cert-file=/opt/kubernetes/ssl/server.pem --tls-private-key-file=/opt/kuberne tes/ssl/server-key.pem --client-ca-file=/opt/kubernetes/ssl/ca.pem --service-account-key-file=/opt/kubernetes/ssl/ca -key.pem --etcd-cafile=/opt/etcd/ssl/ca.pem --etcd-certfile=/opt/etcd/ssl/server.pem --etcd-keyfile=/opt/etcd/ssl/se rver-key.pem --audit-log-maxage=30 --audit-log-maxbackup=3 --audit-log-maxsize=100 --audit-log-path=/opt/kubernetes/ logs/k8s-audit.log
E0521 11:03:49.535675 3116 controller.go:152] Unable to remove old endpoints from kubernetes service: StorageError: key not found, Code: 1, Key: /registry/masterleases/192.168.148.130, ResourceVersion: 0, AdditionalErrorMsg:
|
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|