Error: kube: error preparing environment: Get "https://"My-IP-ADDR":8080/api/v1/namespaces/lease": dial tcp "My-IP-ADDR":8080: i/o timeout

anyone else getting this error when they try to deploy their provider?

akash provider run --home $AKASH_HOME --chain-id $AKASH_CHAIN_ID --node $AKASH_NODE --keyring-backend=test --from $AKASH_PROVIDER_KEY --fees 5000uakt --kubeconfig $KUBECONFIG --cluster-k8s true --deployment-ingress-domain mynode --deployment-ingress-static-hosts true --cluster-public-hostname optional --bid-price-strategy scale --bid-price-cpu-scale 500
I[2021-07-20|20:53:43.067] using kube config file path=/home/mr5610/config
I[2021-07-20|20:53:52.685] syncing sequence cmp=client/broadcaster local=15 remote=15
I[2021-07-20|20:54:02.681] syncing sequence cmp=client/broadcaster local=15 remote=15
I[2021-07-20|20:54:12.682] syncing sequence cmp=client/broadcaster local=15 remote=15
Error: kube: error preparing environment: Get “https://“My-IP-ADDR”:8080/api/v1/namespaces/lease”: dial tcp “My-IP-ADDR”:8080: i/o timeout

“My-IP-ADDR” is set to the ip address of the machine, not the server. please let me know if that’s incorrect.
should i be using something else besides my ip for the https?
i use “mynode” as the $PROVIDER_DOMAIN

It looks like it is not able to talk to your Kubernetes cluster.

Are you running this on a Kubernetes node? It should be connecting to wherever the Kubernetes API is running, this will be defined in your $KUBECONFIG.

Are you able to do kubectl get ns from wherever this is running?

1 Like