Kubernetes externalName service keep pending on dashboard

1/5/2020

I create a externalName service to aws RDS db, everything works just fine except Dashboard status always pending. How to fix the dashboard status, is there any annotation to resolve it ?

  • Kubernetes 1.14
  • Istio 1.4.2
  • Dashboard v2.0.0-beta4+0.gf232c589
  • AWS EKS.7
apiVersion: v1
   kind: Service
   metadata:
     labels:
       app: postgres
     name: postgres
     namespace: staging
   spec:
     externalName: db-staging.xxxxxxxxxxx.ap-southeast-1.rds.amazonaws.com
     type: ExternalName
     ports:
       - port: 5432
   status:
     loadBalancer: {}

Dashboard always show pending for externalName service

enter image description here

-- Hardy
istio
kubernetes
kubernetes-dashboard

1 Answer

1/8/2020

I think this is a bug in the dashboard so I reported it as such. https://github.com/kubernetes/dashboard/issues/4736

My best guess at this point is that this is caused by the fact that this Service does not get a ClusterIP.

Update: This bug has been fixed in kubernetesui/dashboard:v2.0.0-rc7 and later.

-- Niels Basjes
Source: StackOverflow