apiVersion: v1
kind: Service
metadata:
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:xx-xxxx-x:xxxxxxxxx:xxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx #replace this value
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
    domainName: "dex.example.com" #replace this value
  name: dex
  namespace: kube-system
  labels:
    app: dex
    component: identity
spec:
  type: LoadBalancer
  ports:
  - port: 443
    targetPort: 5556
    protocol: TCP
  selector:
    app: dex