Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcluster doesn't seem to honor domain suffix notation in NO_PROXY #2426

Open
joaocc opened this issue Jan 24, 2025 · 0 comments
Open

vcluster doesn't seem to honor domain suffix notation in NO_PROXY #2426

joaocc opened this issue Jan 24, 2025 · 0 comments
Labels

Comments

@joaocc
Copy link
Contributor

joaocc commented Jan 24, 2025

What happened?

We are configuring vcluster to work behind a corporate proxy.
We are using the following:

      controlPlane:
        statefulSet:
          env:
            - name: HTTP_PROXY
              value: http://10.1.2.3:3128
            - name: HTTPS_PROXY
              value: http://10.1.2.3:3128
            - name: NO_PROXY
              value: 10.0.0.0/8,192.168.0.0/16,127.0.0.1,172.16.0.0/16,10.1.2.0/24,vc-etcd,.svc,.local,.svc.cluster.local,localhost,10.2.3.221,10.2.3.1

the settings above would fail if vc-etcd is not there.
In our understanding, the NO_PROXY should not require vc-etcd, as it should be caught by ´.local´ (or .svc.cluster.local).

What did you expect to happen?

that the following should work

            - name: NO_PROXY
              value: 10.0.0.0/8,192.168.0.0/16,127.0.0.1,172.16.0.0/16,10.1.2.0/24,.svc,.local,.svc.cluster.local,localhost,10.2.3.221,10.2.3.1

or even

            - name: NO_PROXY
              value: 10.0.0.0/8,192.168.0.0/16,127.0.0.1,172.16.0.0/16,10.1.2.0/24,.svc.cluster.local,localhost,10.2.3.221,10.2.3.1

How can we reproduce it (as minimally and precisely as possible)?

deploy in an VPC with 2 VMs, where only one (proxy) would have internet access, deploy squid to that VM, and configure the other VM with a k8s+vcluster, and then configure vcluster to try and access the internet.

Anything else we need to know?

No response

Host cluster Kubernetes version

$ kubectl version
microk8s:
Client Version: v1.31.0
Kustomize Version: v5.4.2
Server Version: v1.31.4

vcluster version

$ vcluster --version
vcluster version 0.20.0

VCluster Config

# My vcluster.yaml / values.yaml here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant