Kubernetes使用指南

本文记录一下Kubernetes的使用指南:

报错 Unable to resolve the current Docker CLI context “default”

根据参考资料2运行docker context use default

参考资料:

  1. All docker cli commands fail: “unable to resolve docker endpoint” · Issue #3790 · docker/for-mac · GitHub
  2. Minikube v1.30.1 unable to resolve current docker CLI context after upgrade on Ubuntu 22.04 LTS · Issue #16788 · kubernetes/minikube · GitHub

启用Ingress addons插件时报错 Exiting due to MK_ENABLE: run callbacks: running callbacks

minikube delete --all
choco install minikube //更新minikube
minikube start --cpus 2 --memory 4g --driver docker --profile polar
minikube addons enable ingress --profile polar
kubectl get all -n ingress-nginx

参考资料:

  1. kubernetes - Problem with minikube and nginx ingress when reinstalled minikube - Stack Overflow
  2. minikube start | minikube