k8s默认会从远端拉取镜像,其配置参数imagePullPolicy为Always
containers:
- name: demo
image: image
imagePullPolicy: Never
pod报错"Back-off restarting failed container"解决办法
containers:
- name: demo
image: python:3.6
imagePullPolicy: IfNotPresent # 这个设置 会从本地先找,没有从远处拉取
command: [ "/bin/bash", "-ce", "tail -f /dev/null" ]