Something went wrong while installing GitLab Runner
GitLab 12.0.2-ee (ef76b54f)
Kubernates 1.15.0
Helm Tiller was installed successfully in the gitlab cluster page. But when install gitlab-runner in gitlab cluster page, it says:
Something went wrong while installing GitLab Runner
Operation failed. Check pod logs for install-runner for more details.
Here is the pod list:
[root@node01-k8s echo]# kubectl get pods -n gitlab-managed-apps
NAME READY STATUS RESTARTS AGE
install-runner 0/1 Error 0 19m
tiller-deploy-5d76d4796c-z489p 1/1 Running 0 21m
There is no log for install-runner pod.
[root@node01-k8s echo]# kubectl logs install-runner -n gitlab-managed-apps
Error from server (NotFound): the server could not find the requested resource ( pods/log install-runner)
Here is the detailed infomation for this pod:
[root@node01-k8s echo]# kubectl describe pod install-runner -n gitlab-managed-apps
Name: install-runner
Namespace: gitlab-managed-apps
Priority: 0
Node: node03-k8s/10.0.2.15
Start Time: Fri, 28 Jun 2019 16:44:04 +0800
Labels: gitlab.org/action=install
gitlab.org/application=runner
Annotations: cni.projectcalico.org/podIP: 192.168.88.70/32
Status: Failed
IP: 192.168.88.70
Containers:
helm:
Container ID: docker://4a52ed7df768534462fe81ca37037672ad8c55f9ace07966620561227005255a
Image: registry.gitlab.com/gitlab-org/cluster-integration/helm-install-image/releases/2.12.3-kube-1.11.7
Image ID: docker-pullable://registry.gitlab.com/gitlab-org/cluster-integration/helm-install-image/releases/2.12.3-kube-1.11.7@sha256:d9d87d9cccef5746a33c7aa6f9d570bddc7479089376bf92809af300aa0f4e28
Port: <none>
Host Port: <none>
Command:
/bin/sh
Args:
-c
$(COMMAND_SCRIPT)
State: Terminated
Reason: Error
Exit Code: 1
Started: Fri, 28 Jun 2019 16:44:09 +0800
Finished: Fri, 28 Jun 2019 16:44:54 +0800
Ready: False
Restart Count: 0
Environment:
HELM_VERSION: 2.12.3
TILLER_NAMESPACE: gitlab-managed-apps
COMMAND_SCRIPT: set -xeo pipefail
helm init --upgrade
for i in $(seq 1 30); do helm version && break; sleep 1s; echo "Retrying ($i)..."; done
helm repo add runner https://charts.gitlab.io
helm repo update
helm upgrade runner runner/gitlab-runner --install --reset-values --tls --tls-ca-cert /data/helm/runner/config/ca.pem --tls-cert /data/helm/runner/config/cert.pem --tls-key /data/helm/runner/config/key.pem --version 0.5.2 --set rbac.create\=true,rbac.enabled\=true --namespace gitlab-managed-apps -f /data/helm/runner/config/values.yaml
Mounts:
/data/helm/runner/config from configuration-volume (rw)
/var/run/secrets/kubernetes.io/serviceaccount from tiller-token-vgcwx (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
configuration-volume:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: values-content-configuration-runner
Optional: false
tiller-token-vgcwx:
Type: Secret (a volume populated by a Secret)
SecretName: tiller-token-vgcwx
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 32m default-scheduler Successfully assigned gitlab-managed-apps/install-runner to node03-k8s
Normal Pulling 32m kubelet, node03-k8s Pulling image "registry.gitlab.com/gitlab-org/cluster-integration/helm-install-image/releases/2.12.3-kube-1.11.7"
Normal Pulled 32m kubelet, node03-k8s Successfully pulled image "registry.gitlab.com/gitlab-org/cluster-integration/helm-install-image/releases/2.12.3-kube-1.11.7"
Normal Created 32m kubelet, node03-k8s Created container helm
Normal Started 32m kubelet, node03-k8s Started container helm
**What should I do to fix this problem? **