我試圖按照有關如何使用Gitlab CI與Kubernetes集羣,我與OpenStack的創建這個簡短的文檔:https://docs.gitlab.com/runner/install/kubernetes.htmlGitlab CI上Kubernetes集羣(OPENSTACK)
我設法創建它,但任何時候我
NAMESPACE NAME READY STATUS RESTARTS AGE
gitlab gitlab-runner-3998042981-f8dlh 0/1 CrashLoopBackOff 36 2h
gitlab gitlab-runner-3998042981-g9m5g 0/1 CrashLoopBackOff 36 2h
gitlab gitlab-runner-3998042981-q0bth 0/1 CrashLoopBackOff 36 2h
gitlab gitlab-runner-3998042981-rjztk 0/1 CrashLoopBackOff 36 2h
kube-system coredns-1977636023-1q47s 1/1 Running 0 21h
kube-system grafana-1173934969-vw49f 1/1 Running 0 21h
kube-system node-exporter-gitlab-ci-hc6k3ffax54o-minion-0 1/1 Running 0 21h
kube-system node-exporter-gitlab-ci-hc6k3ffax54o-minion-1 1/1 Running 0 21h
kube-system prometheus-873144915-s9m6j 1/1 Running 0 21h
我的問題是,我不能夠知道爲什麼會這樣,因爲莢日誌不可用時:如前面的鏈接它創建的豆莢是停留在一個CrashLoopBackOff像這樣指定創建ConfigMap和部署他們不被創造。
除此之外,我只是不知道如何處理指定的卷,因爲我只是認爲這與crashloops有一些關係。
部署規定:
- configMap:
name: gitlab-runner
name: config
- hostPath:
path: /usr/share/ca-certificates/mozilla
name: cacerts
我發現:
一個hostPath卷安裝在主機節點的 文件系統中的文件或目錄到你莢
運行後沒有cacerts卷的豆莢一切都被創建,但之後不會執行任何作業。從任何莢
登錄:
Starting multi-runner from /etc/gitlab-runner/config.toml ... builds=0
Running in system-mode.
Configuration loaded builds=0
Metrics server disabled
ERROR: Checking for jobs... forbidden runner=<PARTOFTHETOKEN>
ERROR: Checking for jobs... forbidden runner=<PARTOFTHETOKEN>
ERROR: Checking for jobs... forbidden runner=<PARTOFTHETOKEN>
ERROR: Runner https://URL/ci<TOKEN> is not healthy and will be disabled!