Default configuration of workhorse from the CE images cannot seem to load CSS files
I tried to get the GA charts up and running in one of my clusters using the existing cluster ingress (disabling the nginx charts). No matter what I tried I could not get the sign in / sign up page to correctly load its CSS.
A quick description of my deploy:
- I have turned off installing nginx (our cluster already has one)
- here is my complete configuration for unicorn:
unicorn:
enabled: true
metrics:
enabled: false
nodeSelector:
gitlab-worker: "true"
image:
repository: registry.gitlab.com/gitlab-org/build/cng/gitlab-unicorn-ce
omniauth:
enabled: true
blockAutoCreatedUsers: true
providers:
- secret: gitlab-cas
name: provider
- here is my complete hosts configuration:
hosts:
domain: "dev.mycluster.net"
hostSuffix: "test"
https: true
externalUrl:
tls:
secretName: star.mycluster.net
4 here is the complete ingress configuration:
ingress:
configureCertmanager: false
class: nginx
annotations:
ingress.bluemix.net/redirect-to-https: "True"
ingress.bluemix.net/large-client-header-buffers: "number=4 size=64k"
ingress.bluemix.net/client-max-body-size: "size=255m"
enabled: true
tls:
secretName: star.mycluster.net
- everything else is the defaults, except for configuring remote postgres and remote redis.
- a service and ingress is properly created for unicorn, minio and registry
When I helm upgrade
with the aforementioned values set, everything deploys fine and starts up 100% green, but when I navigate to gitlab-test.dev.mycluster.net
I see the login / sign up page, but the CSS is completely busted, and the browser console is full of errors like the following:
Refused to apply style from 'https://gitlab-test.dev.mycluster.net/assets/application-9531de035711d54d23efae576a59b6cc1fe43677d9a1a8297e98f2b79b0c556f.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
and
Refused to execute script from 'https://gitlab-test.dev.mycluster.net/assets/webpack/runtime.762aeaa4.bundle.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
I ssh'd into the cluster nodes / pods / ingress to make sure traffic was getting to workhorse / unicorn (and it is). I also exec'd into unicorn / workhorse to make sure the resources actually exist (and they do). Perhaps I just overlooked some options? But right now it just seems like the assets can't be loaded out of the image.