#所有节点执行
wget -P /opt/ http://down.i4t.com/coredns_v1.4.tar
docker load -i /opt/coredns_v1.4.tar
#kubectl
wget -P /opt/ http://down.i4t.com/k8s1.14/coredns.yaml
kubectl create -f /opt/coredns.yaml
#验证
cat<<EOF | kubectl apply -f -
apiVersion: v1
kind: Pod
metadata:
name: busybox
namespace: default
spec:
containers:
- name: busybox
image: busybox:1.28.3
command:
- sleep
- "3600"
imagePullPolicy: IfNotPresent
restartPolicy: Always
EOFkubectl exec -ti busybox -- nslookup kubernetes