如何使用一个代理在Mesosphere DC / OS上成功运行Kubernetes?

时间:2018-07-25 14:47:33

标签: kubernetes vagrant cluster-computing mesos dcos

我正在尝试使用dcos-vagrant在仅具有一个私有代理的Mesosphere DC / OS上安装Kubernetes。

但是,“ kube-node-0”的步骤卡在了“ PREPARED”上:

# dcos kubernetes plan show deploy

deploy (serial strategy) (IN_PROGRESS)
├─ etcd (serial strategy) (COMPLETE)
│  └─ etcd-0:[peer] (COMPLETE)
├─ apiserver (dependency strategy) (COMPLETE)
│  └─ kube-apiserver-0:[instance] (COMPLETE)
├─ mandatory-addons (serial strategy) (COMPLETE)
│  ├─ mandatory-addons-0:[additional-cluster-role-bindings] (COMPLETE)
│  ├─ mandatory-addons-0:[kubelet-tls-bootstrapping] (COMPLETE)
│  ├─ mandatory-addons-0:[kube-dns] (COMPLETE)
│  ├─ mandatory-addons-0:[metrics-server] (COMPLETE)
│  ├─ mandatory-addons-0:[dashboard] (COMPLETE)
│  └─ mandatory-addons-0:[ark] (COMPLETE)
├─ kubernetes-api-proxy (dependency strategy) (COMPLETE)
│  └─ kubernetes-api-proxy-0:[install] (COMPLETE)
├─ controller-manager (dependency strategy) (COMPLETE)
│  └─ kube-controller-manager-0:[instance] (COMPLETE)
├─ scheduler (dependency strategy) (COMPLETE)
│  └─ kube-scheduler-0:[instance] (COMPLETE)
├─ node (dependency strategy) (IN_PROGRESS)
│  └─ kube-node-0:[kube-proxy, coredns, kubelet] (PREPARED)
└─ public-node (dependency strategy) (COMPLETE)

我不明白问题所在,因为还有足够的资源,正如我们在DC / OS仪表板上看到的那样: enter image description here

这是Kubernete在options.js中的配置:

{
  "kubernetes": {
     "node_count": 1,
     "reserved_resources": {
     "kube_cpus": 10,
     "kube_mem": 10000,
     "kube_disk": 15000
    }
  }
}

以及下面的VagrantConfig.yaml:

m1:
  ip: 192.168.65.90
  cpus: 2
  memory: 2048
  type: master
a1:
  ip: 192.168.65.111
  cpus: 14
  memory: 13144
  memory-reserved: 512
  type: agent-private
p1:
  ip: 192.168.65.60
  cpus: 2
  memory: 1536
  memory-reserved: 512
  type: agent-public
  aliases:
  - spring.acme.org
  - oinker.acme.org
boot:
  ip: 192.168.65.50
  cpus: 2
  memory: 1024
  type: boot

1 个答案:

答案 0 :(得分:1)

问题似乎是您为Kubernetes节点请求多少RAM。显然,群集的可用RAM不到10000MB(根据屏幕截图,在10GiB中使用了4GiB)。作为测试,将其降低到8000,它应该可以工作。