diff --git a/cmd/fpga_admissionwebhook/README.md b/cmd/fpga_admissionwebhook/README.md index c41e4502..611575d4 100644 --- a/cmd/fpga_admissionwebhook/README.md +++ b/cmd/fpga_admissionwebhook/README.md @@ -66,7 +66,7 @@ $ kubectl describe pod kube-apiserver --namespace kube-system | grep -i no_proxy In case there's no output and your cluster was deployed with `kubeadm` open `/etc/kubernetes/manifests/kube-apiserver.yaml` at the control plane nodes and -append `.svc` to the `no_proxy` environment variable: +append `.svc` and `.svc.cluster.local` to the `no_proxy` environment variable: ```yaml apiVersion: v1 @@ -85,10 +85,17 @@ spec: - name: https_proxy value: http://proxy.host:8433 - name: no_proxy - value: 127.0.0.1,localhost,.example.com,10.0.0.0/8,.svc + value: 127.0.0.1,localhost,.example.com,10.0.0.0/8,.svc,.svc.cluster.local ... ``` +**Note:** To build clusters using `kubeadm` with the right `no_proxy` settings from the very beginning, +set the cluster service names to `$no_proxy` before `kubeadm init`: + +``` +$ export no_proxy=$no_proxy,.svc,.svc.cluster.local +``` + ### Deployment To deploy the webhook, run diff --git a/cmd/operator/README.md b/cmd/operator/README.md index 662d2489..0fb28cb8 100644 --- a/cmd/operator/README.md +++ b/cmd/operator/README.md @@ -41,7 +41,7 @@ $ kubectl describe pod kube-apiserver --namespace kube-system | grep -i no_proxy In case there's no output and your cluster was deployed with `kubeadm` open `/etc/kubernetes/manifests/kube-apiserver.yaml` at the control plane nodes and -append `.svc` to the `no_proxy` environment variable: +append `.svc` and `.svc.cluster.local` to the `no_proxy` environment variable: ```yaml apiVersion: v1 @@ -60,10 +60,17 @@ spec: - name: https_proxy value: http://proxy.host:8433 - name: no_proxy - value: 127.0.0.1,localhost,.example.com,10.0.0.0/8,.svc + value: 127.0.0.1,localhost,.example.com,10.0.0.0/8,.svc,.svc.cluster.local ... ``` +**Note:** To build clusters using `kubeadm` with the right `no_proxy` settings from the very beginning, +set the cluster service names to `$no_proxy` before `kubeadm init`: + +``` +$ export no_proxy=$no_proxy,.svc,.svc.cluster.local +``` + Finally deploy the operator itself: ```