Skip to content

Instantly share code, notes, and snippets.

@calvin-puram
Last active November 7, 2021 20:06
Show Gist options
  • Select an option

  • Save calvin-puram/0cdc5eb93ae464beb284c9ad5be70edb to your computer and use it in GitHub Desktop.

Select an option

Save calvin-puram/0cdc5eb93ae464beb284c9ad5be70edb to your computer and use it in GitHub Desktop.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
# add this line below
cert-manager.io/cluster-issuer: letsencrypt-prod
# end here
kubernetes.io/ingress.class: nginx
creationTimestamp: "2021-04-22T03:20:24Z"
generation: 2
name: nginx-ingress
namespace: default
resourceVersion: "5902"
uid: 62300582-7b91-4f56-a229-75f9664f9334
spec:
rules:
- host: calvinpuram.com
http:
paths:
- backend:
service:
name: nginx-app
port:
number: 80
path: /
pathType: Prefix
# add this line below
tls:
- hosts:
- calvinpuram.com
secretName: calvinpuram.com-tls
# end here
status:
loadBalancer:
ingress:
- hostname: elbhostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment