镜像拉取策略

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


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


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

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

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

 

posted @ 2019-02-08 22:09  effortsing  阅读(2878)  评论(0编辑  收藏  举报