kubectl throwing segmentation fault

6/27/2016

I have started playing with kubernetes. I followed the guide to set it up locally via minikube. I have perfectly managed to configure I am facing a weird issue. Whenever I try running some command using kubectl I get segmentation fault (core dumped). Even when I tried accessing the directory 'kubectl', it threw the same error. I have searched around the internet and have tried different solutions, but no luck

-- Umair Sarfraz
containers
docker
kubernetes
segmentation-fault
virtual-machine

2 Answers

6/23/2018

Operation system: Mac OSX High Sierra

I had the same problem when I download using the link below:

curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/darwin/386/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
  • Segmentation fault: 11

I could solve it when I installed the kubectl using brew:

brew install kubectl

I hope it can help.

-- vpa2
Source: StackOverflow

6/27/2016

I managed to solve this issue by removing all kubectl configurations and reinstalling it. Make sure after downloading, the binary is executable and move it into your PATH:

$ chmod +x kubectl
$ mv kubectl /usr/local/bin/kubectl
-- Umair Sarfraz
Source: StackOverflow