k3d upstream DNS
This commit is contained in:
parent
734ca97321
commit
115d797586
16
README.md
16
README.md
@ -130,6 +130,22 @@ Error: Kubernetes cluster unreachable
|
|||||||
$ kubectl config view --raw > ~/kubeconfig-k3d.yaml
|
$ kubectl config view --raw > ~/kubeconfig-k3d.yaml
|
||||||
$ export KUBECONFIG=~/kubeconfig-k3d.yaml
|
$ export KUBECONFIG=~/kubeconfig-k3d.yaml
|
||||||
```
|
```
|
||||||
|
If you need to change the upstream DNS-resolver:
|
||||||
|
```
|
||||||
|
kubectl -n kube-system edit configmap coredns
|
||||||
|
```
|
||||||
|
Find the line containing
|
||||||
|
```
|
||||||
|
forward . /etc/resolv.conf
|
||||||
|
```
|
||||||
|
and change the content to
|
||||||
|
```
|
||||||
|
forward . ipaddr.of.your.dns-resolver
|
||||||
|
```
|
||||||
|
Finally redeploy the CoreDNS deployment with:
|
||||||
|
`kubectl -n kube-system rollout restart deployment coredns`
|
||||||
|
|
||||||
|
**Note:** If you restart the cluster (`k3d cluster stop your-cluster` and `k3d cluster start your-cluster`), the changes will be gone!
|
||||||
|
|
||||||
# Namespaces and resource limits <a name="user-content-namespaces-limits"></a>
|
# Namespaces and resource limits <a name="user-content-namespaces-limits"></a>
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user