请问有人知道启动配置Controller Manager文件为
[Unit]
Description=Kubernetes Controller Manager
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
[Service]
ExecStart=/opt/kubernetes/bin/kube-controller-manager
–address=127.0.0.1
–master=http://127.0.0.1:8080
–allocate-node-cidrs=true
–service-cluster-ip-range=10.1.0.0/16
–cluster-cidr=10.2.0.0/16
–cluster-name=kubernetes
–cluster-signing-cert-file=/opt/kubernetes/ssl/ca.pem
–cluster-signing-key-file=/opt/kubernetes/ssl/ca-key.pem
–service-account-private-key-file=/opt/kubernetes/ssl/ca-key.pem
–root-ca-file=/opt/kubernetes/ssl/ca.pem
–leader-elect=true \ # --leader-elect kukubernetes采用租赁锁(lease-lock)实现leader的选举(集群必须设置)
–authorization-always-allow-paths=true
–feature-gates=RotateKubeletServerCertificate=true
–controllers=*,bootstrapsigner,tokencleaner
–horizontal-pod-autoscaler-use-rest-clients=true
–horizontal-pod-autoscaler-sync-period=10s
–tls-cert-file=/opt/kubernetes/ssl/kubernetes.pem
–tls-private-key-file=/opt/kubernetes/ssl/cert/kubernetes-key.pem
–use-service-account-credentials=true
–alsologtostderr=true \
–v=2
–logtostderr=false
–log-dir=/opt/kubernetes/log
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
然后一直报错如下信息是怎么回事?那位大师指教一下!谢谢
Jun 30 16:55:48 rootr kube-controller-manager[5495]: E0630 16:55:48.718234 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:55:50 rootr kube-controller-manager[5495]: E0630 16:55:50.820793 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:55:54 rootr kube-controller-manager[5495]: E0630 16:55:54.290794 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:55:57 rootr kube-controller-manager[5495]: E0630 16:55:57.349589 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:55:59 rootr kube-controller-manager[5495]: E0630 16:55:59.701508 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:56:02 rootr kube-controller-manager[5495]: E0630 16:56:02.710166 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:56:06 rootr kube-controller-manager[5495]: E0630 16:56:06.688728 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:56:08 rootr kube-controller-manager[5495]: E0630 16:56:08.694344 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:56:12 rootr kube-controller-manager[5495]: E0630 16:56:12.145616 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:56:14 rootr kube-controller-manager[5495]: E0630 16:56:14.905745 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused
Jun 30 16:56:18 rootr kube-controller-manager[5495]: E0630 16:56:18.143348 5495 leaderelection.go:234] error retrieving resource lock kube-system/kube-controller-manager: Get http://127.0.0.1:8080/api/v1/namespaces/kube-system/endpoints/kube-controller-manager: dial tcp 127.0.0.1:8080: connect: connection refused