Runner CrashLoopBackOff
values1.yaml:
# Default values for kubernetes-gitlab-demo.
# This is a YAML-formatted file.
# Required variables
# baseDomain is the top-most part of the domain. Subdomains will be generated
# for gitlab, mattermost, registry, and prometheus.
# Recommended to set up an A record on the DNS to *.your-domain.com to point to
# the baseIP
# e.g. *.your-domain.com. A 300 baseIP
baseDomain: your-domain.com
# legoEmail is a valid email address used by Let's Encrypt. It does not have to
# be at the baseDomain.
legoEmail: my@gmail.com
# Optional variables
# baseIP is an externally provisioned static IP address to use instead of the provisioned one.
#baseIP: 1.1.1.1
nameOverride: gitlab
# `ce` or `ee`
gitlab: ce
gitlabCEImage: gitlab/gitlab-ce:10.6.2-ce.0
gitlabEEImage: gitlab/gitlab-ee:10.6.2-ee.0
postgresPassword: NDl1ZjNtenMxcWR6NXZnbw==
initialSharedRunnersRegistrationToken: "tQtCbx5UZy_ByS7FyzUH"
mattermostAppSecret: NDl1ZjNtenMxcWR6NXZnbw==
mattermostAppUID: aadas
redisImage: redis:3.2.10
redisDedicatedStorage: true
#redisStorageSize: 5Gi
redisAccessMode: ReadWriteOnce
postgresImage: postgres:9.6.5
# If you disable postgresDedicatedStorage, you should consider bumping up gitlabRailsStorageSize
postgresDedicatedStorage: true
postgresAccessMode: ReadWriteOnce
#postgresStorageSize: 30Gi
gitlabDataAccessMode: ReadWriteOnce
#gitlabDataStorageSize: 30Gi
gitlabRegistryAccessMode: ReadWriteOnce
#gitlabRegistryStorageSize: 30Gi
gitlabConfigAccessMode: ReadWriteOnce
#gitlabConfigStorageSize: 1Gi
gitlabRunnerImage: gitlab/gitlab-runner:alpine-v10.6.0
# Valid values for provider are `gke` for Google Container Engine. Leaving it blank (or any othervalue) will disable fast disk options.
provider: gke
# Gitlab pages
# The following 3 lines are needed to enable gitlab pages.
# pagesExternalScheme: http
# pagesExternalDomain: your-pages-domain.com
# pagesTlsSecret: gitlab-pages-tls # An optional reference to a tls secret to use in pages
## Storage Class Options
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## If not defined, but provider is gke, will use SSDs
## Otherwise default: volume.alpha.kubernetes.io/storage-class: default
#gitlabConfigStorageClass: default
#gitlabDataStorageClass: default
#gitlabRegistryStorageClass: default
#postgresStorageClass: default
#redisStorageClass: default
healthCheckToken: 'SXBAQichEJasbtDSygrD'
# Optional, for GitLab EE images only
#gitlabEELicense: base64-encoded-license
# Additional omnibus configuration,
# see https://docs.gitlab.com/omnibus/settings/configuration.html
# for possible configuration options
#omnibusConfigRuby: |
# gitlab_rails['smtp_enable'] = true
# gitlab_rails['smtp_address'] = "smtp.example.org"
gitlab-runner:
checkInterval: 1
# runnerRegistrationToken must equal initialSharedRunnersRegistrationToken
runnerRegistrationToken: "tQtCbx5UZy_ByS7FyzUH"
# resources:
# limits:
# memory: 500Mi
# cpu: 600m
# requests:
# memory: 500Mi
# cpu: 600m
runners:
privileged: true
## Build Container specific configuration
##
# builds:
# cpuLimit: 200m
# memoryLimit: 256Mi
# cpuRequests: 100m
# memoryRequests: 128Mi
## Service Container specific configuration
##
# services:
# cpuLimit: 200m
# memoryLimit: 256Mi
# cpuRequests: 100m
# memoryRequests: 128Mi
## Helper Container specific configuration
##
# helpers:
# cpuLimit: 200m
# memoryLimit: 256Mi
# cpuRequests: 100m
# memoryRequests: 128Mi
Call Helm:
helm install --name gitlab -f values1.yaml gitlab/gitlab-omnibus
Result:
NAME: gitlab
LAST DEPLOYED: Fri May 4 13:35:05 2018
NAMESPACE: default
STATUS: DEPLOYED
RESOURCES:
==> v1/ConfigMap
NAME DATA AGE
gitlab-gitlab-runner 2 4s
gitlab-gitlab-config 11 4s
gitlab-gitlab-postgresql-initdb 1 4s
kube-lego 2 3s
nginx 7 3s
tcp-ports 1 3s
==> v1/StorageClass
NAME PROVISIONER AGE
gitlab-gitlab-fast kubernetes.io/gce-pd 3s
==> v1/PersistentVolumeClaim
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
gitlab-gitlab-config-storage Pending gitlab-gitlab-fast 3s
gitlab-gitlab-storage Pending gitlab-gitlab-fast 3s
gitlab-gitlab-registry-storage Pending gitlab-gitlab-fast 3s
gitlab-gitlab-postgresql-storage Pending gitlab-gitlab-fast 3s
gitlab-gitlab-redis-storage Pending gitlab-gitlab-fast 3s
==> v1beta1/DaemonSet
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
nginx 3 3 0 3 0 <none> 3s
==> v1beta1/Ingress
NAME HOSTS ADDRESS PORTS AGE
gitlab-gitlab gitlab.your-domain.com,registry.your-domain.com,mattermost.your-domain.com + 1 more... 80, 443 2s
==> v1/Secret
NAME TYPE DATA AGE
gitlab-gitlab-runner Opaque 2 4s
gitlab-gitlab-secrets Opaque 3 4s
==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
gitlab-gitlab ClusterIP 10.99.217.64 <none> 22/TCP,8065/TCP,8105/TCP,8005/TCP,9090/TCP 3s
gitlab-gitlab-postgresql ClusterIP 10.106.144.42 <none> 5432/TCP 3s
gitlab-gitlab-redis ClusterIP 10.100.216.183 <none> 6379/TCP 3s
default-http-backend ClusterIP 10.101.27.104 <none> 80/TCP 3s
nginx LoadBalancer 10.107.140.141 <pending> 80:30732/TCP,443:30258/TCP,22:30303/TCP 3s
==> v1beta1/Deployment
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
gitlab-gitlab-runner 1 1 1 0 3s
gitlab-gitlab 1 1 1 0 2s
gitlab-gitlab-postgresql 1 1 1 0 2s
gitlab-gitlab-redis 1 1 1 0 2s
kube-lego 1 1 1 0 2s
default-http-backend 1 1 1 0 2s
==> v1/Pod(related)
NAME READY STATUS RESTARTS AGE
nginx-k92vw 0/1 ContainerCreating 0 2s
nginx-rmn2h 0/1 ContainerCreating 0 2s
nginx-xvxm5 0/1 ContainerCreating 0 2s
gitlab-gitlab-runner-5df57b8848-wj976 0/1 ContainerCreating 0 2s
gitlab-gitlab-649565d885-dvjqs 0/1 Pending 0 2s
gitlab-gitlab-postgresql-57c7685cfd-srn2q 0/1 Pending 0 2s
gitlab-gitlab-redis-5f4b99fcb4-jlpgw 0/1 Pending 0 2s
kube-lego-68f8bc79c5-jxtst 0/1 ContainerCreating 0 2s
default-http-backend-6679b97b47-wvzj5 0/1 ContainerCreating 0 2s
==> v1/Namespace
NAME STATUS AGE
kube-lego Active 4s
nginx-ingress Active 4s
NOTES:
It may take several minutes for GitLab to reconfigure.
You can watch the status by running `kubectl get deployment -w gitlab-gitlab --namespace default
You did not specify a baseIP so one will be assigned for you.
It may take a few minutes for the LoadBalancer IP to be available.
Watch the status with: 'kubectl get svc -w --namespace nginx-ingress nginx', then:
export SERVICE_IP=$(kubectl get svc --namespace nginx-ingress nginx -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
Then make sure to configure DNS with something like:
*.your-domain.com 300 IN A $SERVICE_IP
Pods states:
kube@server2:/data/glusterfs/data/gluster_volume/gitlab$ kubectl get pods
NAME READY STATUS RESTARTS AGE
gitlab-gitlab-649565d885-dvjqs 0/1 Pending 0 58m
gitlab-gitlab-postgresql-57c7685cfd-srn2q 0/1 Pending 0 58m
gitlab-gitlab-redis-5f4b99fcb4-jlpgw 0/1 Pending 0 58m
gitlab-gitlab-runner-5df57b8848-wj976 0/1 CrashLoopBackOff 14 58m
Why it can't to start? How I can search reason?
Edited by Ivan