why treafik https config not work in kubernetes cluster

3/30/2020

I am trying to configure https with traefik(v2.1.6) in kubernetes cluster(v1.15.2) by following this documentation.

My traefik deployment YAML looks like this:

enter image description here

And this is my IngressRoute config:

    apiVersion: traefik.containo.us/v1alpha1
    kind: IngressRoute
    metadata:
      name: traefik-dashboard-route
      namespace: kube-system
    spec:
      entryPoints:
        - websecure
      tls:
        certresolver: ali
      routes:
        - match: Host(`traefik.example.com`) 
          kind: Rule
          services:
            - name: traefik
              port: 8080

When I access the website, it gives me following message: not secure.

What should I do to make it work?

enter image description here

-- Dolphin
kubernetes
traefik

1 Answer

3/30/2020

Since this certificate is from acme staging its root ca not present in browsers. You need to add it to your systems trust store.

-- Arghya Sadhu
Source: StackOverflow