Skip to content

default backend - 404

Summary

all ingress default backend - 404
(Summarize the bug encountered, concisely as possible)

Steps to reproduce

deploy gitlab helm with this cmd:

helm upgrade --install gitlab gitlab/gitlab
--namespace=gitlab
--set gitlab.migrations.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-rails-ce
--set gitlab.sidekiq.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-sidekiq-ce
--set gitlab.unicorn.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-unicorn-ce
--set gitlab.unicorn.workhorse.image=registry.gitlab.com/gitlab-org/build/cng/gitlab-workhorse-ce
--set gitlab.task-runner.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-task-runner-ce
--set global.hosts.domain=thinker.vc
--set certmanager-issuer.email=chenxushuo@thinker.vc
--set global.smtp.enabled=true
--set global.smtp.address=smtp.exmail.qq.com
--set global.smtp.port=25
--set global.smtp.user_name=gitlab@thinker.vc
--set global.smtp.password.secret=gitlab.mail.secret
--set global.smtp.password.key=passwd
--set global.smtp.authentication=login
--set global.email.from=gitlab.mail.secret
--set redis.persistence.size=20Gi
--set postgresql.persistence.size=20Gi
--set minio.persistence.size=20Gi
--set gitlab.gitaly.persistence.storageClass=disk-gitlab-gitaly
--set gitaly.persistence.volumeName=d-wz90rodmfxkc7d4lprbr
--set postgresql.persistence.storageClass=disk-gitlab-postgres
--set postgresql.persistence.volumeName=d-wz94wr7ipjf3af2724du
--set minio.persistence.storageClass=disk-gitlab-minio
--set minio.persistence.volumeName=d-wz97mvztltnkgg7uprwt
--set redis.persistence.storageClass=disk-gitlab-redis
--set redis.persistence.volumeName=d-wz9avfmnk50og5icpkvx
--set defaultBackend.image.repository=registry.cn-shenzhen.aliyuncs.com/thinker-open/efaultbackend
--set defaultBackend.image.tag=1.3
--set prometheus-server.persistence.storageClass=disk-gitlab-prometheus-server
--set prometheus-server.persistence.volumeName=d-wz95cy4eloodmiexsj21
--set prometheus-server.persistence.size=20Gi
--set certmanager-issuer.email=gitlab.thinker.vc

############## check status:

kubectl get all -n gitlab 

NAME                                                        READY     STATUS             RESTARTS   AGE
pod/cm-acme-http-solver-d9mgj                               1/1       Running            0          20h
pod/cm-acme-http-solver-kkgj9                               1/1       Running            0          20h
pod/cm-acme-http-solver-xb5rq                               1/1       Running            0          20h
pod/gitlab-certmanager-684998874-zhv8p                      1/1       Running            0          20h
pod/gitlab-gitaly-0                                         1/1       Running            0          20h
pod/gitlab-gitlab-runner-d89cbffcb-4v7l9                    0/1       CrashLoopBackOff   239        20h
pod/gitlab-gitlab-shell-5fc6c544f-462ph                     1/1       Running            0          20h
pod/gitlab-gitlab-shell-5fc6c544f-5tlj5                     1/1       Running            0          20h
pod/gitlab-issuer.7-5qhs6                                   0/1       Completed          0          30m
pod/gitlab-migrations.7-m6shh                               0/1       Completed          0          30m
pod/gitlab-minio-7d5dbcccb6-wtjhq                           1/1       Running            0          20h
pod/gitlab-minio-create-buckets.7-kkqhd                     0/1       Completed          0          30m
pod/gitlab-nginx-ingress-controller-57d4f49877-5vhvb        1/1       Running            0          20h
pod/gitlab-nginx-ingress-controller-57d4f49877-cbq7r        1/1       Running            0          20h
pod/gitlab-nginx-ingress-controller-57d4f49877-zkrkn        1/1       Running            0          20h
pod/gitlab-nginx-ingress-default-backend-6b85469d4f-dkz9t   1/1       Running            0          19h
pod/gitlab-nginx-ingress-default-backend-6b85469d4f-qjfdj   1/1       Running            0          19h
pod/gitlab-postgresql-5578b89f58-qrc6p                      2/2       Running            0          20h
pod/gitlab-prometheus-server-6f579b87fc-plzfb               2/2       Running            0          5h
pod/gitlab-redis-66884cc77d-mnlld                           2/2       Running            0          20h
pod/gitlab-registry-c9c5bd7f7-ch964                         1/1       Running            0          30m
pod/gitlab-registry-c9c5bd7f7-mvh9t                         1/1       Running            0          30m
pod/gitlab-sidekiq-all-in-1-f5d5679c5-b72sl                 1/1       Running            0          4h
pod/gitlab-task-runner-6464479659-4qpsx                     1/1       Running            0          20h
pod/gitlab-unicorn-6bdfdd95f-9ssmr                          2/2       Running            0          4h
pod/gitlab-unicorn-6bdfdd95f-m6wt2                          2/2       Running            0          4h

NAME                                              TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)                                   AGE
service/cm-acme-http-solver-5nvhp                 NodePort       10.19.50.84     <none>        8089:31887/TCP                            20h
service/cm-acme-http-solver-8c5gm                 NodePort       10.19.120.198   <none>        8089:30925/TCP                            20h
service/cm-acme-http-solver-jhch9                 NodePort       10.19.101.207   <none>        8089:30936/TCP                            20h
service/gitlab-gitaly                             ClusterIP      None            <none>        8075/TCP,9236/TCP                         20h
service/gitlab-gitlab-shell                       ClusterIP      10.19.29.102    <none>        22/TCP                                    20h
service/gitlab-minio-svc                          ClusterIP      10.19.118.224   <none>        9000/TCP                                  20h
service/gitlab-nginx-ingress-controller           LoadBalancer   10.19.124.238   <pending>     80:32680/TCP,443:32045/TCP,22:31795/TCP   20h
service/gitlab-nginx-ingress-controller-metrics   ClusterIP      10.19.189.185   <none>        9913/TCP                                  20h
service/gitlab-nginx-ingress-controller-stats     ClusterIP      10.19.243.106   <none>        18080/TCP                                 20h
service/gitlab-nginx-ingress-default-backend      ClusterIP      10.19.219.119   <none>        80/TCP                                    20h
service/gitlab-postgresql                         ClusterIP      10.19.52.227    <none>        5432/TCP                                  20h
service/gitlab-prometheus-server                  ClusterIP      10.19.51.181    <none>        80/TCP                                    20h
service/gitlab-redis                              ClusterIP      10.19.161.177   <none>        6379/TCP,9121/TCP                         20h
service/gitlab-registry                           ClusterIP      10.19.187.183   <none>        5000/TCP                                  20h
service/gitlab-unicorn                            ClusterIP      10.19.205.246   <none>        8080/TCP,8181/TCP                         20h

NAME                                                   DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/gitlab-certmanager                     1         1         1            1           20h
deployment.apps/gitlab-gitlab-runner                   1         1         1            0           20h
deployment.apps/gitlab-gitlab-shell                    2         2         2            2           20h
deployment.apps/gitlab-minio                           1         1         1            1           20h
deployment.apps/gitlab-nginx-ingress-controller        3         3         3            3           20h
deployment.apps/gitlab-nginx-ingress-default-backend   2         2         2            2           20h
deployment.apps/gitlab-postgresql                      1         1         1            1           20h
deployment.apps/gitlab-prometheus-server               1         1         1            1           20h
deployment.apps/gitlab-redis                           1         1         1            1           20h
deployment.apps/gitlab-registry                        2         2         2            2           20h
deployment.apps/gitlab-sidekiq-all-in-1                1         1         1            1           20h
deployment.apps/gitlab-task-runner                     1         1         1            1           20h
deployment.apps/gitlab-unicorn                         2         2         2            2           20h

NAME                                                              DESIRED   CURRENT   READY     AGE
replicaset.apps/gitlab-certmanager-684998874                      1         1         1         20h
replicaset.apps/gitlab-gitlab-runner-d89cbffcb                    1         1         0         20h
replicaset.apps/gitlab-gitlab-shell-5fc6c544f                     2         2         2         20h
replicaset.apps/gitlab-minio-7d5dbcccb6                           1         1         1         20h
replicaset.apps/gitlab-nginx-ingress-controller-57d4f49877        3         3         3         20h
replicaset.apps/gitlab-nginx-ingress-default-backend-6b85469d4f   2         2         2         19h
replicaset.apps/gitlab-postgresql-5578b89f58                      1         1         1         20h
replicaset.apps/gitlab-prometheus-server-6f579b87fc               1         1         1         5h
replicaset.apps/gitlab-redis-66884cc77d                           1         1         1         20h
replicaset.apps/gitlab-registry-567866875                         0         0         0         5h
replicaset.apps/gitlab-registry-c9c5bd7f7                         2         2         2         30m
replicaset.apps/gitlab-sidekiq-all-in-1-f5d5679c5                 1         1         1         20h
replicaset.apps/gitlab-task-runner-6464479659                     1         1         1         20h
replicaset.apps/gitlab-unicorn-6bdfdd95f                          2         2         2         20h

NAME                             DESIRED   CURRENT   AGE
statefulset.apps/gitlab-gitaly   1         1         20h

NAME                                                          REFERENCE                            TARGETS          MINPODS   MAXPODS   REPLICAS   AGE
horizontalpodautoscaler.autoscaling/gitlab-gitlab-shell       Deployment/gitlab-gitlab-shell       <unknown>/75%    2         10        2          20h
horizontalpodautoscaler.autoscaling/gitlab-registry           Deployment/gitlab-registry           <unknown>/75%    2         10        2          20h
horizontalpodautoscaler.autoscaling/gitlab-sidekiq-all-in-1   Deployment/gitlab-sidekiq-all-in-1   <unknown>/400m   1         10        1          20h
horizontalpodautoscaler.autoscaling/gitlab-unicorn            Deployment/gitlab-unicorn            <unknown>/400m   2         10        2          20h

NAME                                      DESIRED   SUCCESSFUL   AGE
job.batch/gitlab-issuer.7                 1         1            30m
job.batch/gitlab-migrations.7             1         1            30m
job.batch/gitlab-minio-create-buckets.7   1         1            30m

check error:

start a curl pod,and exec it,do this:

$curl  http://gitlab.thinker.vc
:
default backend - 404
$curl  gitlab-unicorn.gitlab:8181
:
<html><body>You are being <a href="http://gitlab-unicorn.gitlab:8181/users/sign_in">redirected</a>.</body></html>

Configuration used

Versions

  • chart :Versions latest

  • Platform:

    • Cloud: ( alicloud )
    • Self-hosted: (OpenShift )
  • Kubernetes: (kubectl version 1.10.6)

    • Client:
    • Server: kubectl version 1.10.6
  • Helm: (helm version v2.9.1)

    • Client: v2.9.1
    • Server: v2.9.1

Relevant logs

(Please provide any relevate log snippets you have collected, using code blocks (```) to format)

Edited by Auwin Chen