--- apiVersion: v1 kind: Endpoints metadata: name: technitium-dns namespace: infrastructure subsets: - addresses: - ip: 192.168.2.193 ports: - port: 5380 --- apiVersion: v1 kind: Service metadata: name: technitium-dns namespace: infrastructure spec: ports: - port: 5380 targetPort: 5380 --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: technitium-dns namespace: infrastructure annotations: cert-manager.io/cluster-issuer: letsencrypt-prod nginx.ingress.kubernetes.io/auth-url: "https://auth.vandachevici.ro/outpost.goauthentik.io/auth/nginx" nginx.ingress.kubernetes.io/auth-signin: "https://auth.vandachevici.ro/outpost.goauthentik.io/start?rd=$scheme://$http_host$escaped_request_uri" nginx.ingress.kubernetes.io/auth-response-headers: >- Set-Cookie,X-authentik-username,X-authentik-groups,X-authentik-email,X-authentik-name,X-authentik-uid spec: ingressClassName: nginx rules: - host: dns.vandachevici.ro http: paths: - path: / pathType: Prefix backend: service: name: technitium-dns port: number: 5380 tls: - hosts: - dns.vandachevici.ro secretName: technitium-dns-tls