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を展開しようとすると、次の取得をスピンアップした後、彼らが作成され、「保留中で立ち往生しているように見えます"状態:

NAME     STATUS VOLUME CAPACITY ACCESSMODES AGE 
gitlab-ce-data   Pending          5d 
gitlab-ce-etc   Pending          5d 
gitlab-ce-postgresql Pending          5d 
gitlab-ce-redis-data Pending          5d 

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 

RetainReadWriteManyを、5Gi値は、あなたのケースでは異なる場合があります。 docsを確認してください。 'hostPath'はシングルノードクラスタでのみ動作します。それ以外の場合は、NFSなどを使用する必要があります。

+0

私は手動でPVCを削除して再作成しようとしましたが、同じ結果が出るようです - PVCは作成されていますが、「保留中」になっています – swv

+0

PVsではなくPVsを作成する必要があります –

関連する問題