hongbo-miao/hongbomiao.com

View on GitHub
kubernetes/argo-cd/applications/production-hm/kafbat-ui/kubernetes-manifests/hm-kafbat-ui-ingress.yaml

Summary

Maintainability
Test Coverage
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: hm-kafbat-ui-ingress
  namespace: production-hm-kafbat-ui
  annotations:
    kubernetes.io/ingress.class: traefik
    # https://doc.traefik.io/traefik/routing/providers/kubernetes-ingress/#on-ingress
    traefik.ingress.kubernetes.io/router.entrypoints: websecure
    traefik.ingress.kubernetes.io/router.tls: "true"
    # https://kubernetes-sigs.github.io/external-dns/latest/annotations/annotations
    external-dns.alpha.kubernetes.io/hostname: hm-kafbat-ui.internal.hongbomiao.com
    # https://argo-cd.readthedocs.io/en/stable/user-guide/resource_hooks
    argocd.argoproj.io/hook: PostSync
  labels:
    app.kubernetes.io/name: hm-kafbat-ui-ingress
    app.kubernetes.io/part-of: production-hm-kafbat-ui
spec:
  rules:
    - host: hm-kafbat-ui.internal.hongbomiao.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: hm-kafbat-ui-kafka-ui
                port:
                  number: 80
  tls:
    - hosts:
        - hm-kafbat-ui.internal.hongbomiao.com
      secretName: production-hm-kafbat-ui-certificate