ingress.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apiVersion: traefik.containo.us/v1alpha1
  2. kind: IngressRoute
  3. metadata:
  4. name: {{ template "app-name" . }}-ingress
  5. annotations:
  6. traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
  7. # namespace: argocd
  8. spec:
  9. entryPoints:
  10. - websecure
  11. routes:
  12. - match: Host(`{{ .Values.ingress.host }}`)
  13. kind: Rule
  14. services:
  15. - name: {{ template "app-name" . }}
  16. port: {{ .Values.ingress.port }}
  17. tls:
  18. secretName: {{ .Values.ingress.secretName }}
  19. # certificatesResolvers:
  20. # myresolver:
  21. # acme:
  22. # caServer: https://acme-staging-v02.api.letsencrypt.org/directory
  23. # options: {}
  24. # tls:
  25. # certResolver: default
  26. # domains:
  27. # - main: {{ .Values.ingress.main }}
  28. # sans:
  29. # - '*.{{ .Values.ingress.sans }}'
  30. # namespace: {{ .Values.namespace }}
  31. # spec:
  32. # rules:
  33. # - host: k8s.eugeniocarvalho.dev
  34. # http:
  35. # paths:
  36. # - path: ""
  37. # backend:
  38. # serviceName: whoami
  39. # servicePort: 80