mirror of https://github.com/easzlab/kubeasz.git
update kubedns to 1.14.8
parent
32e0ae7599
commit
30d87e7a1e
|
@ -4,6 +4,14 @@ kubedns 是 k8s 集群首先需要部署的,集群中的其他 pods 使用它
|
|||
|
||||
配置文件参考 `https://github.com/kubernetes/kubernetes` 项目目录 `kubernetes/cluster/addons/dns`
|
||||
|
||||
更新 `kube-dns to 1.14.8`,如果集群中已经运行kubedns插件,请使用`RollingUpdate`如下:
|
||||
|
||||
``` bash
|
||||
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)**
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue