Skip to content

Instantly share code, notes, and snippets.

@bzier
Created October 2, 2020 01:24
Show Gist options
  • Save bzier/0b7decac6b3056fc7b9a22439051df10 to your computer and use it in GitHub Desktop.
Save bzier/0b7decac6b3056fc7b9a22439051df10 to your computer and use it in GitHub Desktop.
Fixing local kubernetes for macos

Problem:

Docker for mac would start docker just fine, but kubernetes would be stuck indefinitely on "kubernetes starting..."

Solution:

What finally seemed to do the trick was the following (although can't say for sure it wasn't a combination of multiple things - see below):

rm -rf ~/Library/Group\ Containers/group.com.docker/pki/

(taken from here)

Other steps:

I tried variations of different comments from the threads below, what felt like everything short of uninstalling docker completely. I had images and containers that I didn't want to lose, so didn't want to fully uninstall.

I can't claim this list is complete and certainly not in order, as I tried troubleshooting this several months ago as well (to no success), so may have forgotten a thing or two. However, most steps I attempted came from the links referenced below.

  • Added Google DNS servers (8.8.8.8 and 8.8.4.4)
  • Disable / renable kubernetes (manually edited the settings.json file)
  • Pressed "Reset Kubernetes Cluster"
  • Removed .docker and .kube directories
  • Disconnected from company VPN
  • Updated docker & kubernetes (multiple times over the months)

Threads:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment