Open nonocast opened 2 years ago
minikube start
minikube dashboard
minikube delete --all
国内加速
kubectl create deployment hello-node --image=k8s.gcr.io/echoserver:1.4
跟着官网做第一步就报错 Back-off restarting failed container, 查看错误:
Back-off restarting failed container
kubectl get pods
kubectl describe pod pod-id
kubectl logs pod-id
然后发现估计错在M1缺少luajit:
kubectl logs hello-minikube-5c5f5cddb9-jprqk -p 2022/08/20 16:18:43 [error] 1#1: failed to initialize Lua VM in /etc/nginx/nginx.conf:54 nginx: [error] failed to initialize Lua VM in /etc/nginx/nginx.conf:54
前提
从零配置
安装
minikube start
minikube dashboard
minikube delete --all
国内加速
74 配置docker国内镜像
hello-minikube
kubectl create deployment hello-node --image=k8s.gcr.io/echoserver:1.4
跟着官网做第一步就报错
Back-off restarting failed container
, 查看错误:kubectl get pods
kubectl describe pod pod-id
kubectl logs pod-id
然后发现估计错在M1缺少luajit:
参考