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

host url is zero in helloworld-go #297

Closed
git-remove opened this issue Jul 30, 2018 · 5 comments
Closed

host url is zero in helloworld-go #297

git-remove opened this issue Jul 30, 2018 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@git-remove
Copy link

Expected Behavior

host url should not be none after

export HOST_URL=$(kubectl get services.serving.knative.dev helloworld-go -o jsonpath='{.status.domain}')

Actual Behavior

host url is zero

Additional Info

follow the steps in https://github.com/knative/docs/blob/master/install/getting-started-knative-app.md

@git-remove
Copy link
Author

I use azure and the installation is very successful.

@krancour
Copy link
Contributor

krancour commented Jul 30, 2018

@ab-sin-the, off on a tangent here...

When you say you used Azure, did you use AKS? I work on the AKS team and we're currently trying to pin down some issues with Knative on Azure. See knative/serving#1730. I'd love if you wanted to hop over to that thread or Azure/AKS#561 and share any observations.

@anggakes
Copy link

anggakes commented Aug 1, 2018

I got same issues,

I run this command :
kubectl get services.serving.knative.dev helloworld-go -o=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain

result :
NAME DOMAIN
helloworld-go

I use Google Kubernetes Engine

@dictvm
Copy link

dictvm commented Feb 22, 2019

kubectl get ksvc helloworld-go  --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
NAME            DOMAIN
helloworld-go   <none>

The same happens to me with the latest GKE Kubernetes version:

Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.7", GitCommit:"0c38c362511b20a098d7cd855f1314dad92c2780", GitTreeState:"clean", BuildDate:"2018-08-20T10:09:03Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.7-gke.6", GitCommit:"144b681e3870074abfdaaf176e48b1b13360d7e5", GitTreeState:"clean", BuildDate:"2019-02-09T00:08:19Z", GoVersion:"go1.10.7b4", Compiler:"gc", Platform:"linux/amd64"}

@samodell samodell added the kind/bug Categorizes issue or PR as related to a bug. label Mar 11, 2019
@miosman
Copy link
Contributor

miosman commented Mar 13, 2019

I was experiencing the same issue but it turns out the domain issue is with kubectl version. I had kubectl version 1.8.0 installed and the command

kubectl get ksvc helloworld-go  --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain

would fail due to the fact that kubectl was returning the kubernets service rather than the knative service.

Upgrading to kubectl version 1.13 fixes the issue. On both versions getting the domain name from the route resource always worked.

kubectl get route helloworld-go  --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain

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

6 participants