我有一個有5個節點的kubernetes集羣。當我添加一個簡單的nginx窗格時,它將被安排到其中一個節點,但它不會啓動。它甚至不會拉動圖像。Kubernetes pod無法啓動
這是nginx.yaml文件:
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
當我形容莢有一個事件:Successfully assigned busybox to up02
當我登錄到up02和檢查,看看是否有任何圖像拉着我看到它沒有得到拉,所以我手動拉動它(我想也許它需要一些踢開始;))
該pod將始終保持在容器創建狀態。這不僅是這個吊艙,問題是任何我試圖添加的吊艙。
有這是必要的Kubernetes操作機器上運行一些豆莢:
[email protected]:~$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
default busybox 0/1 ContainerCreating 0 11m
default nginx 0/1 ContainerCreating 0 22m
kube-system dummy-2088944543-n1cd5 1/1 Running 0 5d
kube-system etcd-up01 1/1 Running 0 5d
kube-system kube-apiserver-up01 1/1 Running 0 5d
kube-system kube-controller-manager-up01 1/1 Running 0 5d
kube-system kube-discovery-1769846148-xfpls 1/1 Running 0 5d
kube-system kube-dns-2924299975-5rzz8 4/4 Running 0 5d
kube-system kube-proxy-17bpl 1/1 Running 2 3d
kube-system kube-proxy-3pk63 1/1 Running 0 3d
kube-system kube-proxy-h3wrj 1/1 Running 0 5d
kube-system kube-proxy-wzqv4 1/1 Running 0 3d
kube-system kube-proxy-z3xxx 1/1 Running 0 3d
kube-system kube-scheduler-up01 1/1 Running 0 5d
kube-system kubernetes-dashboard-3203831700-3xfbd 1/1 Running 0 5d
kube-system weave-net-6c0nr 2/2 Running 0 3d
kube-system weave-net-dchhf 2/2 Running 0 5d
kube-system weave-net-hshvg 2/2 Running 4 3d
kube-system weave-net-n684c 2/2 Running 1 3d
kube-system weave-net-r5319 2/2 Running 0 3d
我已完全重新安裝我的羣集,並開始與一個主節點和一個節點,並以某種方式工作。我不知道我做了什麼不同(我不認爲我做了什麼不同的事情,除了事實上它現在是一個2節點集羣)將總共擴展到5個節點 – Ravenix