Posts

Showing posts with the label kubernetes

Kubernetes - uid : unable to do port forwarding: socat not found

Kubernetes port forwarding feature can be used to access a pod port from local machine without accessing pod. This can be achieved by other means like creating service. But port forwarding is somewhat quick. Port forwarding can be enabled by running following command: kubectl port-forward <pod Name> <local port>: <pod port> e.g., kubectl port-forward my-pod 9000:80 I have a test  k8s cluster with single master node and two worker nodes. I have enabled port forward by using above command and invoked curl by opening another ssh session from master node. vagrant@master-1:~$ curl http://localhost:9000 curl: (52) Empty reply from server I was expecting some output but got “Empty reply from server”. Also observed, in ssh session where port forwarding is enabled, below error message. E0811 13:51:54.597132   13384 portforward.go:391] an error occurred forwarding 9000 -> 80: error forwarding port 80 to pod ce0a72c043baa73a773b0803c9b3dc365229e...

Main process exited, code=killed, status=11/SEGV - Kube Controller Manager is not coming up

I freshly installed k8s cluster. But when I tried to start cluster, cluster nodes were not coming up. While debugging the issue, noticed following Controller manager error in journalctl. kube-controller-manager.service: Main process exited, code=killed, status=11/SEGV Analysis: Somehow I suspected that it was due to partial download of k8s binaries as I was using slow mobile internet connection. It was confirmed when I compared the size of binaries. Solution: Re-downloaded the binaries freshly, Hurray !!!