I created Kubernetes cluster using ACS-engine in Azure and installed Ingress controller.
I deployed a service:
I created a VM with NGinx in order to get external access and using the external IP of the VM such external access to the service exists.
My Goal:
Steps that i did using the UI:
Click Create resources -> Create public IP address -> set name of the IP -> set assignment Static -> define the resource group.
Click create resources -> Networking -> Load Balancer -> select the publicip that created in step #1 -> Use the same resource group.
Created Health probe -> protocol HTTP, port 32597 (Ingress port) and path /myservice
Defined the backend pool to the Availabilityset of the Kubernetes nodes (agents).
Created Inbound NAT rule: Service: Custom. Port: 32597. Availabilityset: Kubernetes nodes (agents)
Unlike the VM i cannot reach the website and i do not see in the Loadbalncer logs any information.
Questions:
Thank you.
As I know, if you want to reach the website in Azure Kubernets Cluster through Load Balancer, you should set Load Balancer rules, not NAT rules. And the rules screenshot here.
How to get the traffic logs ?
You can use the command kubectl logs azure-vote-front-7976b7dcd9-m7445
like this to get the pods logs. You can get more details from kubectl logs podName
. And the test screenshot here.
Can i run TCPDUMP ?
If you want to run TCPDUMP in the Kubernets node, you can ssh into the node and run TCPDUMP with the root permission. And the test screenshot here.
For your third question, you can follow the suggestion which I say at the beginning.