您好,登錄后才能下訂單哦!
Openshift 創建 Pod 狀態狀態一直處在 Pending 狀態
#?oc?get?pods NAME?????????????READY?????STATUS????RESTARTS???AGE hello-openshift-1-deploy???0/1??????Pending????0???????49s
#?oc?describe?pod?hello-openshift-1-deploy …… ????SecretName:??deployer-token-tcb2q ????Optional:????false QoS?Class:???????BestEffort Node-Selectors:??node-role.kubernetes.io/compute=true Tolerations:?????<none> Events: ??Type???Reason??????Age????????From????????Message ??----???------??????----???????----????????------- ??Warning??FailedScheduling?3s?(x8?over?1m)?default-scheduler??0/3?nodes?are?available:?3?node(s)?didn't?match?node?selector.
查看 Node 節點標簽
#?oc?describe?node?node1.example.com Name:??????node1.example.com Roles:??????infra Labels:?????beta.kubernetes.io/arch=amd64 ?????????beta.kubernetes.io/os=linux ?????????kubernetes.io/hostname=node1.example.com ?????????node-role.kubernetes.io/infra=true ……
查詢發現沒有需要的標簽
?
給 Node 節點打所需的標簽
#?oc?label?node?node1.example.com??node-role.kubernetes.io/compute=true #?oc?label?node?node2.example.com??node-role.kubernetes.io/compute=true
?
再次查看 Pod 狀態
#?oc?get?pods NAME?????????????READY?????STATUS????????RESTARTS???AGE hello-openshift-1-deploy???0/1?????ContainerCreating????0??????18m
?
過會后再次查看
#?oc?get?pods NAME????????????READY?????STATUS??RESTARTS???AGE hello-openshift-1-5hqc2???1/1?????Running???0??????22m
?
問題完美解決!!!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。