yaml文件中镜像拉取策略

yaml文件中镜像拉取策略解释:


      containers:
      - name: coredns
        image: coredns/coredns:1.2.0
        imagePullPolicy: IfNotPresent


IfNotPresent :如果本地存在镜像就优先使用本地镜像。

Never:直接不再去拉取镜像了,使用本地的;如果本地不存在就报异常了。

Always   如果你yaml配置文件中没有定义那就是使用默认的

猜你喜欢

转载自www.cnblogs.com/effortsing/p/10356852.html