无法在牧场主群集上成功运行Kubernetes

时间:2017-05-17 09:28:49

标签: cluster-computing kubernetes rancher

版本

  • RancherOS:v1.0.2-rc1
  • rancher / server:stable
  • kubernetes:v1.5.4(来自牧场主/服务器目录)

堆栈

kubelet

图像:牧场主/ K8S:v1.5.4-rancher1-4

kubelet (Expected state running but got stopped: Error response from daemon: oci runtime error: container_linux.go:247:starting container process caused "process_linux.go:245:running exec setns process for init caused \"exit status 16\"")

kubernetes + 1 Sidekick

日志:kubernets-kubernetes-KUBE主机名更新器-1

standard_init_linux.go:178: exec user process caused "exec format error"

enter image description here

在节点主机上运行

[rancher@rancher ~]$ docker version
Client:
 Version:      17.03.1-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Tue Mar 28 00:40:02 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.1-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Tue Mar 28 00:40:02 2017
 OS/Arch:      linux/amd64
 Experimental: false

[rancher@rancher ~]$ docker info
Containers: 10
 Running: 9
 Paused: 0
 Stopped: 1
Images: 9
Server Version: 17.03.1-ce
Storage Driver: overlay
 Backing Filesystem: extfs
 Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.28-rancher
Operating System: RancherOS v1.0.2-rc1
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 3.861 GiB
Name: rancher
ID: BMLU:ZJKP:HFQG:WYUT:7IDI:NCMN:INOL:VDIR:EFHZ:EE5E:H6ZA:NFJC
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpu shares support
WARNING: No cpuset support
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

[rancher@rancher ~]$ docker exec -it 1855 bash
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "process_linux.go:83: executing setns process caused \"exit status 16\""

1 个答案:

答案 0 :(得分:1)

您需要将Docker切换到1.12.x; Kubernetes不支持1.13 / 17.0x。