Infra & Cloud yaml Intermediate

Kubernetes Ingress with TLS

NGINX Ingress manifest with TLS termination using cert-manager annotations.

yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: myapp-ingress
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
  tls: [{ hosts: [app.example.com], secretName: myapp-tls }]
  rules:
    - host: app.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend: { service: { name: myapp, port: { number: 80 } } }

Prerequisites

  • cert-manager
  • nginx-ingress-controller

Pro Tips

  • → Use letsencrypt-staging first for testing.

Was this module useful?

Share your experience — it helps the team improve.

Leave Feedback

Commercial Licensing

Acquire a production access token or template license for enterprise deployment.

Module Info

Language
yaml
Level
Intermediate
Read time
4 min
Published
Dec 2024
License
Commercial License

Newsletter

New modules every week, directly to your inbox.