# ingress.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: bookstack-local-ingress namespace: bookstack-db 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: bookstack-tls-secret hosts: - wiki.needlestack.boo rules: - host: wiki.needlestack.boo http: paths: - path: / pathType: Prefix backend: service: name: bookstack-web-service port: number: 80