Created
December 22, 2017 10:00
-
-
Save ipolyzos/93aab41ecdeeb8d07f44a931970f5dad to your computer and use it in GitHub Desktop.
Test Kubernetes internal load balancer on ACS/ACS-Engine deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# deploy external load-balancer example | |
$ kubectl create -f https://github.com/SenthuranSivananthan/azure/blob/master/ACS/kubernetes/internal-load-balancer.yaml | |
# verify external IP | |
$ kubectl get svc -o wide | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR | |
frontend-lb LoadBalancer 10.0.52.162 51.140.81.20 80:30107/TCP 8m app=nginx_backend | |
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 11m <none> | |
(51.140.81.20 is a public IP ! ) | |
# deploy internal load-balancer example | |
$ kubectl create -f https://github.com/SenthuranSivananthan/azure/blob/master/ACS/kubernetes/internal-load-balancer.yaml | |
# verify external IP | |
$ kubectl get svc -o wide | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR | |
frontend-lb LoadBalancer 10.0.163.173 10.240.0.127 80:32687/TCP 4m app=nginx_backend | |
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 21m <none> | |
(10.240.0.127 is a private IP ! ) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment