acs-engine icon indicating copy to clipboard operation
acs-engine copied to clipboard

There is no connention to Internal Load Balancer via VPN

Open Dienemy opened this issue 8 years ago • 5 comments

Is this a request for help?: Yes


Is this an ISSUE or FEATURE REQUEST? (choose one): ISSUE


What version of acs-engine?: v0.13.0


Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm): Kubernetes

What happened:

There is no connection to ILB from outside of VNet. We have configured VTI tunnels from our network to Azure VNet and we can not access created ILB from our network, but from the same VNet connection exist

What you expected to happen:

Access to internal load balancer from our network.

How to reproduce it (as minimally and precisely as possible):

Create one deployment and service for this it.

Example deployment:

kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80

Example service:

kind: Service
apiVersion: v1
metadata:
  name: nginx
  annotations:
    service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
  selector:
    app: nginx
  ports:
  - protocol: TCP
    port: 80
    targetPort: 80
  type: LoadBalancer

Anything else we need to know:

Service list:

NAME         TYPE           CLUSTER-IP    EXTERNAL-IP   PORT(S)        AGE
kubernetes   ClusterIP      10.0.0.1      <none>        443/TCP        3d
nginx        LoadBalancer   10.0.102.55   10.32.6.44    80:31081/TCP   2h

Check connection from Kubernetes master:

azureuser@k8s-master-23427634-0:/opt/manifests$ nmap -Pn -p 80 10.32.6.44

Starting Nmap 7.01 ( https://nmap.org ) at 2018-02-26 15:35 UTC
Nmap scan report for 10.32.6.44
Host is up (0.0011s latency).
PORT   STATE SERVICE
80/tcp open  http

Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds

Check connection from outside of VNet:

# nmap -Pn -p 80 10.32.6.44

Starting Nmap 6.40 ( http://nmap.org ) at 2018-02-26 15:35 UTC
Nmap scan report for 10.32.6.44
Host is up.
PORT   STATE    SERVICE
80/tcp filtered http

Dienemy avatar Feb 26 '18 15:02 Dienemy

Hello @Dienemy can you access nodes on your VPN? can you try deploying a pod using host network then try to access pod IP on VPN?

khenidak avatar Feb 27 '18 20:02 khenidak

Hello. @khenidak . Yes we can access to our nodes in this VNet. As example:

  1. I have access to kube master via VPN:
# nmap -p 22 10.32.6.130          

Starting Nmap 7.01 ( https://nmap.org ) at 2018-02-28 15:06 EET
Nmap scan report for 10.32.6.130
Host is up (0.20s latency).
PORT   STATE SERVICE
22/tcp open  ssh

Nmap done: 1 IP address (1 host up) scanned in 1.24 seconds
  1. I have access to POD via VPN:
# nmap -p 80 10.32.6.15

Starting Nmap 7.01 ( https://nmap.org ) at 2018-02-28 15:09 EET
Nmap scan report for 10.32.6.15
Host is up (0.20s latency).
PORT   STATE SERVICE
80/tcp open  http

Nmap done: 1 IP address (1 host up) scanned in 1.19 seconds

Dienemy avatar Feb 28 '18 13:02 Dienemy

Also please take a look on tcpdump output if try to curl ILB: azuregit

Dienemy avatar Feb 28 '18 13:02 Dienemy

I am also experiencing issues with ILB, I changed from acs-engine 0.5.0 using k8s 1.6.6 to 1.9.3 and it just stop working.

Any ideas?

hmarcelodn avatar Mar 22 '18 22:03 hmarcelodn

@hmarcelodn hello. The issue was version of Kubenertes. I have update Kubernetes to 1.9.6 and it has gone.

Dienemy avatar Mar 28 '18 10:03 Dienemy