修改部分镜像拉取策略

pull/243/merge
gjmzj 2018-06-22 18:01:43 +08:00
parent 07ce9c6422
commit 465b79ca50
8 changed files with 16 additions and 8 deletions

View File

@ -64,7 +64,8 @@ spec:
serviceAccountName: traefik-ingress-controller
terminationGracePeriodSeconds: 60
containers:
- image: traefik
- image: traefik:v1.6
imagePullPolicy: IfNotPresent
name: traefik-ingress-lb
args:
- --web

View File

@ -27,7 +27,7 @@ spec:
- name: metrics-server
#image: gcr.io/google_containers/metrics-server-amd64:v0.2.1
image: mirrorgooglecontainers/metrics-server-amd64:v0.2.1
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
command:
- /metrics-server
- --source=kubernetes.summary_api:''

View File

@ -60,6 +60,7 @@ spec:
- name: nfs-client-provisioner
#image: quay.io/external_storage/nfs-client-provisioner:latest
image: jmgao1983/nfs-client-provisioner:latest
imagePullPolicy: IfNotPresent
volumeMounts:
- name: nfs-client-root
mountPath: /persistentvolumes

View File

@ -6,6 +6,7 @@ spec:
containers:
- name: test-pod
image: busybox
imagePullPolicy: IfNotPresent
command:
- "/bin/sh"
args:

View File

@ -19,6 +19,7 @@ spec:
containers:
- name: test
image: busybox
imagePullPolicy: IfNotPresent
command:
- "/bin/sh"
args:

View File

@ -9,3 +9,7 @@ FIREWALL_ENABLE: "true"
# service-proxy 支持开关
# 在/etc/ansible/hosts文件的变量'SERVICE_PROXY'定义
# kube-router 镜像版本
IMAGE: "cloudnativelabs/kube-router"
PullPolicy: "IfNotPresent"

View File

@ -58,8 +58,8 @@ spec:
serviceAccountName: kube-router
containers:
- name: kube-router
image: cloudnativelabs/kube-router
imagePullPolicy: Always
image: {{ IMAGE }}
imagePullPolicy: {{ PullPolicy }}
args:
- "--run-router=true"
- "--run-firewall={{ FIREWALL_ENABLE }}"
@ -94,7 +94,7 @@ spec:
initContainers:
- name: install-cni
image: busybox
imagePullPolicy: Always
imagePullPolicy: {{ PullPolicy }}
command:
- /bin/sh
- -c

View File

@ -39,8 +39,8 @@ spec:
serviceAccountName: kube-router
containers:
- name: kube-router
image: cloudnativelabs/kube-router
imagePullPolicy: Always
image: {{ IMAGE }}
imagePullPolicy: {{ PullPolicy }}
args:
- "--run-router=true"
- "--run-firewall={{ FIREWALL_ENABLE }}"
@ -71,7 +71,7 @@ spec:
initContainers:
- name: install-cni
image: busybox
imagePullPolicy: Always
imagePullPolicy: {{ PullPolicy }}
command:
- /bin/sh
- -c