Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service of type ExternalName shows as pending indefinitely #4736

Closed
nielsbasjes opened this issue Jan 8, 2020 · 5 comments
Closed

Service of type ExternalName shows as pending indefinitely #4736

nielsbasjes opened this issue Jan 8, 2020 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@nielsbasjes
Copy link

Environment
Installation method: Applied this yaml https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
Kubernetes version: 1.17.0
Dashboard version: 2.0.0-beta8
Operating system: CentOS 7
Node.js version ('node --version' output):
Go version ('go version' output):
Steps to reproduce

Create file pending-externalname.yaml with this content

apiVersion: v1
kind: Service
metadata:
  name: externalname-stays-pending
spec:
  externalName: niels.basjes.nl
  type: ExternalName
  ports:
    - protocol: TCP
      port: 443
      targetPort: 443
$ kubectl apply -f  pending-externalname.yaml 
service/externalname-stays-pending created
$ kubectl get svc externalname-stays-pending -o wide
NAME                         TYPE           CLUSTER-IP   EXTERNAL-IP       PORT(S)   AGE   SELECTOR
externalname-stays-pending   ExternalName   <none>       niels.basjes.nl   443/TCP   35s   <none>
Observed result

image

The icon on the left shows as 'pending' (i.e. the grey incomplete circle) indefinitely.

Expected result

After the startup (which should be really really fast in this case) the icon changes to a green check.

image

Comments

I suspect this has to do with the fact that an ExternalName will NOT get a ClusterIP at all.

@nielsbasjes nielsbasjes added the kind/bug Categorizes issue or PR as related to a bug. label Jan 8, 2020
@zehuaiWANG
Copy link
Contributor

Yes, I agree, maybe we should take ExternalName type's service into consideration. Thank you.

PaulCharlton added a commit to PaulCharlton/dashboard that referenced this issue Mar 15, 2020
…e is "ExternalName"; patch for kubernetes#4736

Signed-off-by: mystic knight <techguru@byiq.com>
maciaszczykm pushed a commit that referenced this issue Mar 16, 2020
…e" (#5010)

* update service list to show correct "success" status when service type is "ExternalName"; patch for #4736

Signed-off-by: mystic knight <techguru@byiq.com>

* reformat code per guidance from CI style checks

Signed-off-by: mystic knight <techguru@byiq.com>

* reformat code per guidance from CI style checks; use switch statement instead of nested if for longer term resilience

Signed-off-by: mystic knight <techguru@byiq.com>

* eliminate fall-through per style guidance from CI

Signed-off-by: mystic knight <techguru@byiq.com>

* eliminate parenthesis per style guidance from CI

Signed-off-by: mystic knight <techguru@byiq.com>
@nielsbasjes
Copy link
Author

I installed kubernetesui/dashboard:v2.0.0-rc7 and this problem is fixed now.
Thanks!

@itarch
Copy link

itarch commented Dec 1, 2020

When I run the Service for a Deployment with:

spec:
  type: LoadBalancer

still get the grey icon

Changing to:

spec:
  type: NodePort

icon is green.

btw in Dashboard Version 2.0.0.rc6 I was able to add following param to disable automatic logout

      args:
        - --token-ttl=0

The current/running Version 2.0.3.x prevents to add this param


My
Dashboard Version:
Dashboard v2.0.3+0.g665b4d367
Kubernetes Client/Server Version:

Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4", GitCommit:"d360454c9bcd1634cf4cc52d1867af5491dc9c5f", GitTreeState:"clean", BuildDate:"2020-11-11T13:17:17Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.1", GitCommit:"7879fc12a63337efff607952a323df90cdc7a335", GitTreeState:"clean", BuildDate:"2020-04-08T17:30:47Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

@floreks
Copy link
Member

floreks commented Dec 1, 2020

LoadBalancer type requires external endpoints to have an IP assigned in order to show green status.

Token TTL param has not changed. It still works the same as previously. All supported arguments are defined here: https://github.com/kubernetes/dashboard/blob/master/docs/common/dashboard-arguments.md

PS. The latest version is v2.0.4 and we'll try to push v2.1.0 this week.

@itarch
Copy link

itarch commented Dec 1, 2020

  1. LoadBalancer, can't follow your comment due to skill gaps, I've to check the docu
  2. Right, Token TTL works, maybe misspelled when I tried

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants