Skip to content

Commit

Permalink
Merge pull request #99 from 1369521908/main
Browse files Browse the repository at this point in the history
feat: pod tips
  • Loading branch information
guangzhengli authored Feb 26, 2024
2 parents 1876239 + 2479302 commit 7d08f6f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/pod.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,19 @@ kubectl get pods
kubectl port-forward hellok8s 3000:3000
```

关于启动失败

如果查看Pod的状态为 ErrImagePull 或者 ImagePullBackOff

```
NAME READY STATUS RESTARTS AGE
hellok8s 0/1 ImagePullBackOff 0 22m
```
尝试切换为当前环境的docker-env, 删除pod, 然后重新构建镜像即可
+ 官方文档: [Pushing directly to the in-cluster Docker daemon (docker-env)](https://minikube.sigs.k8s.io/docs/handbook/pushing/)
```shell
eval $(minikube docker-env)
```

0 comments on commit 7d08f6f

Please sign in to comment.