Reputation: 31
I am new to knative. I have installed minikube for cluster support and all the required tools for knative . While creating the service in reference of this: https://knative.dev/docs/serving/getting-started-knative-app/
I am getting below output:
kn service create helloworld-go --image gcr.io/knative-samples/helloworld-go --env TARGET="Go Sample v1"
Creating service 'helloworld-go' in namespace 'default':
0.047s The Configuration is still working to reflect the latest desired specification. 0.407s The Route is still working to reflect the latest desired specification. 0.522s Configuration "helloworld-go" is waiting for a Revision to become ready. 12.683s ... 12.882s Ingress has not yet been reconciled. 15.143s Ready to serve.
Service 'helloworld-go' created to latest revision 'helloworld-go-yvtlp-1' is available at URL: http://helloworld-go.default.mydomain.com
kn service describe helloworld-go
Name: helloworld-go Namespace: default Age: 18s URL: http://helloworld-go.default.mydomain.com
Revisions: 100% @latest (helloworld-go-yvtlp-1) [1] (18s) Image: gcr.io/knative-samples/helloworld-go (pinned to 5ea96b)
Conditions: OK TYPE AGE REASON ++ Ready 3s ++ ConfigurationsReady 5s ++ RoutesReady 3s
curl http://helloworld-go.default.mydomain.com -v
- Could not resolve host: helloworld-go.default.mydomain.com
- Closing connection 0 curl: (6) Could not resolve host: helloworld-go.default.mydomain.com
Can somebody help?
Upvotes: 0
Views: 1434
Reputation: 31
After applying so many solution this one worked for me:
If you are getting this error then something is wrong with you GATEWAY.
To resolve that thing: try to deploy demo application from istio : https://istio.io/latest/docs/tasks/traffic-management/ingress/ingress-control/
It will fix your gateway issue and you can successfully deploy your application using knative.
[NOTE: If you are using minikube you can first try https://istio.io/latest/docs/setup/getting-started/#download may be this could work for you.]
All the best
Upvotes: 0
Reputation: 3493
I'm guessing that you don't control the DNS for mydomain.com. In that case, you'll need to issue a command like:
curl -H "Host: helloworld-go.default.mydomain.com" $INGRESS_IP
You may need to use minikube tunnel
to get an ingress IP on minikube.
This is described here under the "temporary DNS" section of "Configure DNS":
https://knative.dev/docs/install/any-kubernetes-cluster/
Upvotes: 0