0

https://about.gitlab.com/2016/06/28/get-started-with-openshift-origin-3-and-gitlab/Openshift 2.4 cdk Gitlab-CE "PersistentVolumeClaim이 바인딩되지 않아 SchedulerPredicates가 실패했습니다 :"gitlab-ce-redis-data "가 예상치 못한 것입니다."

Time Kind and Name Reason and Message 
2:21:21 PM 
Pod 
gitlab-ce-redis-1-1digf 
Failed scheduling 
*SchedulerPredicates failed due to PersistentVolumeClaim is not bound: "gitlab-ce-redis-data", which is unexpected.* 
6 times in the last minute 
2:21:20 PM 
Pod 
gitlab-ce-1-89qc8 
Failed scheduling 
SchedulerPredicates failed due to PersistentVolumeClaim is not bound: "gitlab-ce-etc", which is unexpected. 
6 times in the last minute 
2:21:19 PM 
Pod 
gitlab-ce-postgresql-1-yatd9  
Failed scheduling 
SchedulerPredicates failed due to PersistentVolumeClaim is not bound: "gitlab-ce-postgresql", which is unexpected. 

에 gitlab의 지시에 따라 최신 CDK의 V 2.4 (https://developers.redhat.com/products/cdk/download/), 나는의 gitlab-CE를 배포하려고 할 때 다음과 같은 수를 회전 한 후 그들은 만들어지고 "보류에 갇히지 것 같다 "상태 :

pv 생성시 이러한 오류를 해결하려면 어떻게해야합니까?

답변

0

PV를 너무 마스터가 원격 호스트 인 경우 이전 단계에 대한 토큰을 사용할 수 있습니다 관리자로

oc login -u system:admin 

에 로그인, 관리 사용자에 의해 생성 될 필요가있다. 그런 다음 바로 PV를 만들 :

$cat pv.yaml 

kind: PersistentVolume 
    metadata: 
    name: foobar 
    spec: 
    capacity: 
     storage: 5Gi 
    accessModes: 
     - ReadWriteMany 
    persistentVolumeReclaimPolicy: Retain 
    hostPath: 
     path: /tmp/foo 



oc create pv -f pv.yaml 

RetainReadWriteMany5Gi 값은 귀하의 경우 다를 수 있습니다. docs을 확인하십시오. 'hostPath'는 단일 노드 클러스터에서만 작동합니다. 그렇지 않으면 NFS 또는 유사한 것을 사용해야합니다.

+0

그래서 수동으로 PVC를 삭제하고 다시 만들려고했지만 동일한 결과가 나타나는 것 같습니다. PVC는 만들어졌지만 "보류 중"상태로 고정되어 있습니다. – swv

+0

PVC가 아닌 PV를 만들어야합니다. –