Skip to content

Commit

Permalink
修改部分镜像拉取策略
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Jun 22, 2018
1 parent 07ce9c6 commit 465b79c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion manifests/ingress/traefik-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion manifests/metrics-server/metrics-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:''
1 change: 1 addition & 0 deletions manifests/nfs-provisioner/nfs-client-provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions manifests/nfs-provisioner/test/test-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ spec:
containers:
- name: test-pod
image: busybox
imagePullPolicy: IfNotPresent
command:
- "/bin/sh"
args:
Expand Down
1 change: 1 addition & 0 deletions manifests/nfs-provisioner/test/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
containers:
- name: test
image: busybox
imagePullPolicy: IfNotPresent
command:
- "/bin/sh"
args:
Expand Down
4 changes: 4 additions & 0 deletions roles/kube-router/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ FIREWALL_ENABLE: "true"
# service-proxy 支持开关
# 在/etc/ansible/hosts文件的变量'SERVICE_PROXY'定义

# kube-router 镜像版本
IMAGE: "cloudnativelabs/kube-router"
PullPolicy: "IfNotPresent"

6 changes: 3 additions & 3 deletions roles/kube-router/templates/kuberouter-all.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -94,7 +94,7 @@ spec:
initContainers:
- name: install-cni
image: busybox
imagePullPolicy: Always
imagePullPolicy: {{ PullPolicy }}
command:
- /bin/sh
- -c
Expand Down
6 changes: 3 additions & 3 deletions roles/kube-router/templates/kuberouter.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -71,7 +71,7 @@ spec:
initContainers:
- name: install-cni
image: busybox
imagePullPolicy: Always
imagePullPolicy: {{ PullPolicy }}
command:
- /bin/sh
- -c
Expand Down

0 comments on commit 465b79c

Please sign in to comment.