Pods are inaccessible. Connection refused.
I'm not sure if this is a duplicate, but I've deployed a k8s cluster yesterday. I've followed all the manual steps to create a k8s cluster.
kubectl create -f some_service_with_type_load_balancer
curl cluster_ip/external_ip -> connection refused
Logs of kube-proxy show that it's due to
clusterCIDR not specified, unable to distinguish between internal and external traffic
Even after providing --cluster-cidr=10.240.0.0/16 to the proxy, it still isn't working
@colemickens @dmitsh Is there some sort of quick fix/config I'm missing here? My iptables seem fine as well.
Please email us your ACS api model you were using with ssh secrets and SPN secretes removed. This will look similar to https://github.com/Azure/acs-engine/blob/master/examples/kubernetes.json. Also please provide when you updated ACS-Engine.
Also, can you confirm you went through the troubleshooting section: https://github.com/Azure/acs-engine/blob/master/docs/kubernetes.md#troubleshooting.
Using the latest version of acs-engine. Last commit was 11c1633cdc794d2c3089a1440293b82c84ea209d which was on March 7th.
Also, I did go through the troubleshooting section. My service principal is fine.
Here's the file.
{ "apiVersion": "vlabs", "properties": { "orchestratorProfile": { "orchestratorType": "Kubernetes" }, "masterProfile": { "count": 1, "dnsPrefix": "prokurekubernetesfoo", "vmSize": "Standard_DS2_v2" }, "agentPoolProfiles": [ { "name": "agentpool1", "count": 2, "vmSize": "Standard_DS2_v2", "availabilityProfile": "AvailabilitySet" } ], "linuxProfile": { "adminUsername": "azureuser", "ssh": { "publicKeys": [ { "keyData": "" } ] } }, "servicePrincipalProfile": { "servicePrincipalClientID": "", "servicePrincipalClientSecret": "***" } } }
I can provide the exact steps to reproduce it. It is happening in Azure Container Service (booted from azure ui) in southeastasia as well
Please provide exact steps after you deployed cluster.
I have just deployed a new cluster in southeastasia with your setup, and performed the following and everything works:
- create two nginx services, one named nginx, and the other nginx3
- kubectl exec into the nginx3 pod, install curl, and successfully curl nginx.default.svc.cluster.local, and the external IP
Closing as there was no repro, and our BVTs are not catching this issue.
If this is still happening, please paste an exact repro, and reopen.