Kubernetes YAML Networking/Enable TLS on Ingress

Terminate HTTPS with a Secret-backed certificate.

Section: Ingress

Enable TLS on Ingress

yaml
yaml
spec:
  tls:
    - hosts:
        - app.example.com
      secretName: app-example-com-tls

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Ingress
Basic Ingress YAML
Route traffic by host and path.
OpenIn sheetyamlsame section
ClusterIP Service YAML
Expose Pods internally in the cluster.
Default deny ingress policy
Block incoming traffic until explicitly allowed.
NodePort Service YAML
Expose the service on each node's IP.
Allow ingress from labeled pods
Permit traffic only from a specific app tier.
LoadBalancer Service YAML
Request external load balancing from the platform.