Skip to content

Commit

Permalink
update kubedns to 1.14.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgao1983 committed Jan 27, 2018
1 parent 219ffe2 commit 15a4ae9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
8 changes: 8 additions & 0 deletions docs/guide/kubedns.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ kubedns 是 k8s 集群首先需要部署的,集群中的其他 pods 使用它

配置文件参考 `https://github.com/kubernetes/kubernetes` 项目目录 `kubernetes/cluster/addons/dns`

更新 `kube-dns to 1.14.8`,如果集群中已经运行kubedns插件,请使用`RollingUpdate`如下:

```
kubectl set image -n kube-system deploy/kube-dns kubedns=mirrorgooglecontainers/k8s-dns-kube-dns-amd64:1.14.8
kubectl set image -n kube-system deploy/kube-dns dnsmasq=mirrorgooglecontainers/k8s-dns-dnsmasq-nanny-amd64:1.14.8
kubectl set image -n kube-system deploy/kube-dns sidecar=mirrorgooglecontainers/k8s-dns-sidecar-amd64:1.14.8
```

### 安装

**kubectl create -f /etc/ansible/manifests/kubedns/[kubedns.yaml](../../manifests/kubedns/kubedns.yaml)**
Expand Down
12 changes: 6 additions & 6 deletions manifests/kubedns/kubedns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ spec:
optional: true
containers:
- name: kubedns
#image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5
image: mirrorgooglecontainers/k8s-dns-kube-dns-amd64:1.14.5
#image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.8
image: mirrorgooglecontainers/k8s-dns-kube-dns-amd64:1.14.8
resources:
# TODO: Set memory limits when we've profiled the container for large
# clusters, then set request = limit to keep this container in
Expand Down Expand Up @@ -131,8 +131,8 @@ spec:
- name: kube-dns-config
mountPath: /kube-dns-config
- name: dnsmasq
#image: gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5
image: mirrorgooglecontainers/k8s-dns-dnsmasq-nanny-amd64:1.14.5
#image: gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.8
image: mirrorgooglecontainers/k8s-dns-dnsmasq-nanny-amd64:1.14.8
livenessProbe:
httpGet:
path: /healthcheck/dnsmasq
Expand Down Expand Up @@ -170,8 +170,8 @@ spec:
- name: kube-dns-config
mountPath: /etc/k8s/dns/dnsmasq-nanny
- name: sidecar
#image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.5
image: mirrorgooglecontainers/k8s-dns-sidecar-amd64:1.14.5
#image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.8
image: mirrorgooglecontainers/k8s-dns-sidecar-amd64:1.14.8
livenessProbe:
httpGet:
path: /metrics
Expand Down
12 changes: 6 additions & 6 deletions roles/deploy/templates/kubedns.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ spec:
optional: true
containers:
- name: kubedns
#image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5
image: mirrorgooglecontainers/k8s-dns-kube-dns-amd64:1.14.5
#image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.8
image: mirrorgooglecontainers/k8s-dns-kube-dns-amd64:1.14.8
resources:
# TODO: Set memory limits when we've profiled the container for large
# clusters, then set request = limit to keep this container in
Expand Down Expand Up @@ -131,8 +131,8 @@ spec:
- name: kube-dns-config
mountPath: /kube-dns-config
- name: dnsmasq
#image: gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5
image: mirrorgooglecontainers/k8s-dns-dnsmasq-nanny-amd64:1.14.5
#image: gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.8
image: mirrorgooglecontainers/k8s-dns-dnsmasq-nanny-amd64:1.14.8
livenessProbe:
httpGet:
path: /healthcheck/dnsmasq
Expand Down Expand Up @@ -170,8 +170,8 @@ spec:
- name: kube-dns-config
mountPath: /etc/k8s/dns/dnsmasq-nanny
- name: sidecar
#image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.5
image: mirrorgooglecontainers/k8s-dns-sidecar-amd64:1.14.5
#image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.8
image: mirrorgooglecontainers/k8s-dns-sidecar-amd64:1.14.8
livenessProbe:
httpGet:
path: /metrics
Expand Down

0 comments on commit 15a4ae9

Please sign in to comment.