Using multiple certificates for different ports in EKS

Viewed 10

Is it possible to specify different certificates for different ports. Below is the service configuration I am using in EKS. I want to map a different certificate for port 443 and a different one for 8883

apiVersion: v1
kind: Service
metadata:
  labels:
    app: test-app
  name: test-app
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
    service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip"
    service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:us-west-1:xxxxxxxxxxxx:certificate/xxxxxxxxxxxxxxxxx"
    service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443,8883"
spec:
  ports:    
    - port: 443
      name: http
      targetPort: 18083   
    - name: mqttssl
      port: 8883
      protocol: TCP
      targetPort: 8883     
  selector:
    app: test-app
  type: LoadBalancer
0 Answers
Related