Change docker image pulling policy from Always to IfNotPresent

Do not repeat pulling images when container recreate in magnum cluster.

Change-Id: Iaa618309375cf17d6511ae371a6a15a3345d4d6d
Story:2004644
Task:28595
This commit is contained in:
leledashenqi 2018-12-20 09:21:58 +08:00
parent 40980e7bdb
commit 26c28a03d2
3 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ spec:
containers:
- name: coredns
image: ${_dns_prefix}coredns:1.0.1
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
args: [ "-conf", "/etc/coredns/Corefile" ]
volumeMounts:
- name: config-volume

View File

@ -331,7 +331,7 @@ spec:
spec:
containers:
- image: ${CONTAINER_INFRA_PREFIX:-docker.io/grafana/}grafana:${GRAFANA_TAG}
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
name: grafana
env:
- name: GF_SECURITY_ADMIN_PASSWORD

View File

@ -116,7 +116,7 @@ write_files:
containers:
- name: coredns
image: coredns/coredns:007
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
args: [ "-conf", "/etc/coredns/Corefile" ]
volumeMounts:
- name: config-volume