K8S Ingress Generator
Kubernetes v1 Ingress & Cloud Native Traffic Routing

Kubernetes Ingress YAML Generator (Nginx, Traefik & ALB Rules)

Generate Kubernetes Ingress v1 specs with host rules, path routing, TLS cert-manager secrets, rewrite annotations, and backend services.

100% Client-Side Privacy
networking.k8s.io/v1 ↔ cert-manager
Presets:
Ingress Controller & Global Protocol Settings
Class: nginx•TLS Enabled
ACME / Vault
Ingress Rules & Configuration
Routing Rules & Path Mappings1 Host • 2 Paths
#1Hostname (FQDN):
Path:
Path:
spec.defaultBackend
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: production-web-ingress
  namespace: production
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    nginx.ingress.kubernetes.io/ssl-redirect: true
    nginx.ingress.kubernetes.io/force-ssl-redirect: true
    nginx.ingress.kubernetes.io/proxy-body-size: 50m
    nginx.ingress.kubernetes.io/proxy-connect-timeout: 15
    nginx.ingress.kubernetes.io/proxy-read-timeout: 60
    nginx.ingress.kubernetes.io/enable-cors: true
    nginx.ingress.kubernetes.io/cors-allow-origin: "*"
spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - api.example.com
      secretName: production-tls-secret
  rules:
    - host: api.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: web-frontend-svc
                port:
                  number: 80
          - path: /api/v1
            pathType: Prefix
            backend:
              service:
                name: api-backend-svc
                port:
                  number: 8080
Routing Rules
1 Host Rule • 2 Paths
Strict Host & Path Matching
Controller & TLS
NGINX Ingress • TLS Enabled
cert-manager (letsencrypt-prod)
Spec Standard
networking.k8s.io/v1
Kubernetes 1.19+ • Helm & Kustomize Ready

networking.k8s.io/v1 Specification Standard

Strict adherence to Kubernetes v1 Ingress standards, replacing deprecated extensions/v1beta1 with robust pathType validation.

Zero-Knowledge In-Browser Generation

All hostnames, backend service mappings, secrets, and cloud annotations remain 100% inside your browser Web runtime.

Multi-Controller Ecosystem Ready

Built-in presets and syntax annotations for Ingress-Nginx, Traefik v3, AWS ALB Ingress Controller, and cert-manager TLS certificates.

Technical Reference & Architecture Guide

K8S Ingress Generator — Reference Guide

Developer utility for k8s-ingress-generator.

Key Parameters & Controls

controller'nginx' | 'traefik' | 'alb' | 'gce' | 'haproxy' | 'custom'

Target Kubernetes ingress controller implementation used to determine controller-specific annotations and routing attributes.

Default: 'nginx'
ingressClassNamestring

Specifies the IngressClass resource name under spec.ingressClassName for Kubernetes 1.18+ ingress reconciliation.

Default: 'nginx'
pathType'Prefix' | 'Exact' | 'ImplementationSpecific'

Path matching rule according to the networking.k8s.io/v1 Ingress specification. Prefix matches path elements separated by slashes.

Default: 'Prefix'
clusterIssuerstring

Identifier for the cert-manager ClusterIssuer resource, populated into cert-manager.io/cluster-issuer annotations.

Default: 'letsencrypt-prod'
albScheme'internet-facing' | 'internal'

Provisioning routing scheme for AWS Load Balancer Controller, applied as alb.ingress.kubernetes.io/scheme.

Default: 'internet-facing'

Pro Tips & Best Practices

Migrate to IngressClassName

Deprecate legacy kubernetes.io/ingress.class annotations in favor of spec.ingressClassName to comply with Kubernetes v1.18+ standards and avoid admission controller warnings.

Order Prefix Paths Explicitly

Kubernetes Ingress v1 matches paths based on longest prefix match, but intermediate regex engines differ; when configuring rewrite targets, set pathType to ImplementationSpecific.

Enforce Dual-Port TLS Secrets

When pairing cert-manager with HTTP-01 solvers, ensure Ingress hosts in spec.tls match the routing host rules and that the referenced ClusterIssuer can reach backend port 80.

Common Gotchas & Troubleshooting

AWS ALB Controller returns 502 Bad Gateway with target-type set to 'ip'

Verify that backend Pods run on AWS VPC CNI with direct pod-routable IPs, or switch target-type to 'instance' and ensure target Service exposes NodePort.

NGINX rewrite-target annotation strips trailing path segments or 404s

Set pathType to 'ImplementationSpecific' and define path regex capture groups such as /api(/|$)(.*) paired with nginx.ingress.kubernetes.io/rewrite-target: /$2.

Frequently Asked Questions

What is the difference between Prefix and ImplementationSpecific pathType?▼

Prefix matches paths segmented by forward slashes according to RFC 3986, prioritizing longest prefix match. ImplementationSpecific delegates path interpretation and regex parsing entirely to the underlying controller runtime.

How does cert-manager integration generate Ingress annotations?▼

Enabling cert-manager injects cert-manager.io/cluster-issuer under metadata.annotations and populates spec.tls with secretName, prompting the cert-manager ingress-shim to issue Certificate resources automatically.

Why does AWS Load Balancer Controller ignore Ingress rules without annotations?▼

The AWS ALB controller requires explicit annotations like alb.ingress.kubernetes.io/scheme and alb.ingress.kubernetes.io/target-type to reconcile TargetGroups and bind an Application Load Balancer to the cluster.

Does this generator execute manifests or store cluster secrets on remote servers?▼

No. All YAML, Helm values, and kubectl CLI strings are generated entirely client-side in browser memory without sending cluster hostnames, namespaces, or secret names to external servers.

Related Tools & Utilities

All Tools →