serving: curl: (7) Failed to connect to helloworld-go.default.mydomain.com port 80: Connection refused

Knative on Google Kubernetes Engine - Running this: https://knative.dev/docs/install/any-kubernetes-cluster/

Applying this hello world go: https://knative.dev/docs/serving/samples/hello-world/helloworld-go/

I keep getting: curl: (7) Failed to connect to helloworld-go.default.mydomain.com port 80: Connection refused

kubectl get ksvc helloworld-go   
NAME            URL                                      LATESTCREATED         LATESTREADY           READY   REASON
helloworld-go   http://helloworld-go.default.mydomain.com   helloworld-go-ttgdz   helloworld-go-ttgdz   True 

I have added this for my domain:

apiVersion: v1
kind: ConfigMap
metadata:
  name: config-domain
  namespace: knative-serving
data:
  # example.org will be used for routes having app=prod.
  
  # example.org: |
  #   selector:
  #     app: prod

  # Default value for domain, for routes that does not have app=prod labels.
  # Although it will match all routes, it is the least-specific rule so it
  # will only be used if no other domain matches.
  mydomain.com: |

Tried changing port: 8080 to 80 same result

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 36 (15 by maintainers)

Most upvoted comments

It makes sure activator is not in the request path. In general the value depends on your load, but it removes one variable from consideration. You might want minScale=1 as well, to make sure activator is never in the path. If we eliminate that variable, you can remove those ๐Ÿ˜ƒ

cc @tcnghia @ZhiminXiang @nak3

my expertise ends here ๐Ÿ˜ƒ But given youโ€™re using SDS perhaps you need to connect to port 443?