apiVersion: v1
kind: Service
metadata:
  name: multi-juicer-loadbalancer
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
    # Populate ACM Certificate ARN before deployment
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:{region}:{user-id}:certificate/{id}
    service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "https"

spec:
  type: LoadBalancer
  selector:
    app.kubernetes.io/instance: multi-juicer
    app.kubernetes.io/name: multi-juicer
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: 3000
    - name: https
      port: 443
      targetPort: 3000
