# ingress.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: homepage-local-ingress namespace: homepage annotations: # AUTOMATED TLS FIX: Triggers cert-manager to provision the certificate cert-manager.io/cluster-issuer: "letsencrypt-production" # THE 502 FIX: Instructs NGINX how to bridge the internal pod connection protocol nginx.ingress.kubernetes.io/backend-protocol: "HTTP" spec: ingressClassName: nginx # AUTOMATED TLS FIX: Instructs NGINX where to mount the generated certificate tls: - secretName: homepage-tls-secret hosts: - needlestack.boo rules: - host: needlestack.boo http: paths: - path: / pathType: Prefix backend: service: name: homepage-service port: number: 80