Good afternoon, I hope you are well. I’ve been busy for a few days regarding the deployment of my cluster that I have already mounted and created the various services that I will need (GitLab and Grafana + Prometheus in my Rancher + K3S cluster).
enter image description here
The problem comes when I add an ingress for my Gitlab application and it doesn’t load the stylesheet. After this I say, “Yes, I have already done this” but it gave me an error that I have never encountered on my ingress traefik that I have set up.
The “https://domain-name/assets/webpack/runtime.bad33c1a.bundle.js” resource was blocked due to a MIME type mismatch (“text/html”) (X-Content-Type-Options: nosniff).
enter image description here
The main problem I have been already these last days looking at but I have not found solutions to test. I have tried changing protocol, doing it via NodePort and nothing. If you could give me some solutions to this I would be amazing. I have already assembled the cluster and the application ready to mount the pipeline with the Runner but I need to fix this aesthetic failure.
This is my ingress configuration (with a tls wildcard signed by a CA with IONOS):
enter image description here
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
field.cattle.io/publicEndpoints: >-
[{"addresses":["192.168.121.199"],"port":443,"protocol":"HTTPS","serviceName":"gitlab:gitlab-webservice-default","ingressName":"gitlab:gitlab","hostname":"gitlab.pepepfoter15.es","path":"/","allNodes":false}]
creationTimestamp: '2024-06-03T11:36:59Z'
generation: 22
managedFields:
- apiVersion: networking.k8s.io/v1
fieldsType: FieldsV1
fieldsV1:
f:status:
f:loadBalancer:
f:ingress: {}
manager: traefik
operation: Update
subresource: status
time: '2024-06-05T09:21:21Z'
- apiVersion: networking.k8s.io/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:field.cattle.io/publicEndpoints: {}
f:spec:
f:defaultBackend:
.: {}
f:service:
.: {}
f:name: {}
f:port:
.: {}
f:number: {}
f:ingressClassName: {}
f:rules: {}
f:tls: {}
manager: agent
operation: Update
time: '2024-06-05T10:23:07Z'
name: gitlab
namespace: gitlab
resourceVersion: '130241'
uid: a619d939-e5b6-4234-9ba0-09049ec4c5a3
spec:
defaultBackend:
service:
name: gitlab-webservice-default
port:
number: 8080
ingressClassName: traefik
rules:
- host: gitlab.pepepfoter15.es
http:
paths:
- backend:
service:
name: gitlab-webservice-default
port:
number: 8080
path: /
pathType: Prefix
tls:
- hosts:
- gitlab.pepepfoter15.es
secretName: gitlab-wildcard-tls-test
status:
loadBalancer:
ingress:
- ip: 192.168.121.199
If someone could solve something for me, I would appreciate it in the best way. 🙂
A respond for my quest
Pepe Rodríguez Cañas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.