Last active
December 15, 2020 00:11
-
-
Save ggrocco/d5045a72a256069993fabf518fb68444 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This manifest will help on configuring the Sendgrid universal links with SSL on the Kubernetes ingress | |
# https://sendgrid.com/docs/ui/sending-email/universal-links/#setting-up-universal-links-using-nginx | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: sendgrid-links-redirect | |
spec: | |
type: ExternalName | |
externalName: sendgrid.net | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
# nginx.ingress.kubernetes.io/upstream-vhost: email-links.example-domain.com # this will be required if you want to change the first url. | |
nginx.ingress.kubernetes.io/ssl-redirect: "false" # after request to Sendgrid to use HTTPS on the links, change to true. | |
name: sendgrid-links-redirect | |
namespace: default | |
spec: | |
rules: | |
- host: email-links.example-domain.com | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: sendgrid-links-redirect | |
servicePort: 80 | |
tls: | |
- hosts: | |
- email-links.example-domain.com | |
secretName: example-domain-com-tls | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, thanks for sharing this. I'm having trouble though, I tried doing as you did but my Nginx server just gives me a
404
. Any suggestions? I'm on EKS