Traefik证书配置

创建证书, 命令行和UI都可以

kubectl create secret tls who-tls --cert=tls.crt --key=tls.key

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: diynocap
  namespace: lizhe
spec:
  entryPoints:
    - websecure
  routes:
    - match: Host(`diynocap.com`)
      kind: Rule
      services:
        - name: whoamisvc
          port: 80
          sticky:
            cookie:
              httpOnly: true
              name: whoamitoken
  tls:
    secretName: diynocap

Send a Message