Skip to content

Instantly share code, notes, and snippets.

@joseabraham
Created February 21, 2023 21:12
Show Gist options
  • Save joseabraham/ee197f5c1ed6d43ccdec26046413421a to your computer and use it in GitHub Desktop.
Save joseabraham/ee197f5c1ed6d43ccdec26046413421a to your computer and use it in GitHub Desktop.
Kubernetes Ingress Configuration for Nginx - Let's Encrypt
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- example.domain.io
secretName: example-tls
rules:
- host: example.domain.io
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: linode-app
port:
number: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment