Coder.comC
Coder.com3y ago
30 replies
Hybrid

Kubernetes Ingress and wildcard certificate

Hello,
I am facing an issue with the Ingress manifest on the helm coder-v2
We are using a wildcard certificate and trying to deploy coder on kubernetes to try it.

I am clearly not really experienced in kubernetes so apologies if I'm not really precise and/or correct.

From the docs I found on the web, the Ingress should have a rule to point to the host, which should be coder.domain.com in our case.
However, the tls should match the wildcard in the certificate, which should be "*.domain.com".
It seems like it is not currently doable with the helm chart.. ?

Something like this (domains were redacted) :

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
  name: ingress
  namespace: coder
spec:
  tls:
    - hosts:
        - *.domain.com
      secretName: wildcard-domain
  rules:
    - host: coder.domain.com
      http:
        paths:
          - backend:
              service:
                name: coder
                port:
                  name: http
            path: /
            pathType: Prefix
Was this page helpful?