Remove not secure warning from https browser

im have set up traefik ingreesroute with https trought websecure but i can't find a way to eliminate the not secure warning in the browser. i run my apps in a kubernetes cluster and i cannot use external services like cloudflare since im in a airgap enviroment, what are possible solutions?

What is the not secure warning about? Are you using http? Are you using https with an untrusted TLS cert?

i get the untrusted warning from the browser because i use the default traefik cert

Your connection is not private
net::ERR_CERT_AUTHORITY_INVALID
Subject: TRAEFIK DEFAULT CERT

Issuer: TRAEFIK DEFAULT CERT

You need a trusted TLS cert to use https.

Usually you would use a LetsEncrypt TLS cert, which can be automatically generated with Internet access and lasts for 3 months. I think using cert-manager is standard in k8s.

Alternatively you can buy an official TLS cert for your domain, which will be valid for 1 year.

If you don’t want to deal with renewals, the only option is to create your own custom TLS cert with Traefik and import the trust chain into every OS or browser, which is accessing the internal service.