Chris F
Chris F

Reputation: 16803

How to model an ALB with multiple certificates in AWS EKS?

I see a lot of posts in Stackoverflow relating to this subject, but I think they're not exactly the same.

Currently we have AWS ALBs with HTTPS listeners with multiple rules, and each listener rule is a /path/*. I know how to model that with Ingress Controller and Ingress objects now.

However our ALBs have have 2 certificate ARNs to serve two different domains. I know Ingress has this annotation now.

alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-west-2:XXXXXXXXXXXX:certificate/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

But how do I add another certificate?

Upvotes: 0

Views: 1134

Answers (2)

Rafael Barros
Rafael Barros

Reputation: 1053

Just separate the arn certificates with comma that k8s automagically identifies the correct certificate for each rule:

alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-west-2:XXXXXXXXXXXX:certificate/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,arn:aws:acm:us-west-2:XXXXXXXXXXXX:certificate/xxxxxxxx-xxxx-xxxx-xxxx-2222222222222

Upvotes: 1

amitd
amitd

Reputation: 1532

You can refer this syntax mentioned under multiple certificates, which works fine with helm.

Upvotes: 2

Related Questions