由于DefaultStorageClass,Kubernetes API服务器无法启动。

与服务器10.85.40.165:8080的连接被拒绝-您是否指定了正确的主机或端口?
(kubectl失败,将重试2次)


Ubuntu的:14.04.4

kubectl版本

Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.0", GitCommit:"5cb86ee022267586db386f62781338b0483733b3", GitTreeState:"clean"}

Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.0", GitCommit:"5cb86ee022267586db386f62781338b0483733b3", GitTreeState:"clean"}

Docker信息
docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.10.3
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
 Volume: local
 Network: bridge null host
Kernel Version: 4.2.0-27-generic
Operating System: Ubuntu 14.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.67 GiB
Name: stage-kube01
ID: 45T4:TF3N:VK4V:ELG3:NZA2:V5KJ:N6WE:W5RD:5F2Q:RRIZ:ZZJ4:TBZP
WARNING: No swap limit support

Kube-apiserver.log
  mv: extensions/__internal
I0922 17:30:27.725853    9012 genericapiserver.go:82] Adding storage destination for group batch

F0922 17:30:28.418600    9012 plugins.go:107] Unknown admission plugin: DefaultStorageClass

I0922 17:30:28.455859    9025 server.go:188] Will report 10.85.40.165 as public IP address.

I0922 17:30:28.455983    9025 plugins.go:71] No cloud provider specified.

I0922 17:30:28.456165    9025 server.go:112] constructing etcd storage interface.   sv: v1   mv: __internal

I0922 17:30:28.456335    9025 genericapiserver.go:82] Adding storage destination for group

I0922 17:30:28.456382    9025 server.go:296] Configuring extensions/v1beta1 storage destination

I0922 17:30:28.456411    9025 server.go:112] constructing etcd storage interface.   sv: extensions/v1beta1

最佳答案

我有同样的问题。

我从ubuntu / config-default.sh的ADMISSION_CONTROL变量中删除了“DefaultStorageClass”,并且能够启动集群。但是,我尚未对所有内容进行完整的测试以确保它们仍然可以正常工作。

08-28 08:10