Openshift 創(chuàng)建 Pod 狀態(tài)狀態(tài)一直處在 Pending 狀態(tài)
創(chuàng)新互聯(lián)公司是專業(yè)的三江侗網(wǎng)站建設(shè)公司,三江侗接單;提供成都網(wǎng)站制作、成都網(wǎng)站建設(shè),網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進行三江侗網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!
#?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:?????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 節(jié)點標(biāo)簽
#?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 ……
查詢發(fā)現(xiàn)沒有需要的標(biāo)簽
?
給 Node 節(jié)點打所需的標(biāo)簽
#?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 狀態(tài)
#?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
?
問題完美解決!??!