Loading...
Generate a Kubernetes Ingress from a form — multiple hosts with their own path rules, TLS via cert-manager, and the nginx annotations you actually reach for.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- app.example.com
secretName: app-tls
rules:
- host: app.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app
port:
number: 80
An Ingress needs a running ingress controller to do anything. Validate the manifest with the YAML Validator.