Expose containers using Agent IPs and configure them in Azure application gateway's backend pool

2/3/2018

I have created an Azure container service cluster using Kubernetes orchestration with 3 Masters and 2 Agents:

NAME                       STATUS    AGE       VERSION
k8s-agentpool-75930632-0   Ready     4d        v1.7.9
k8s-agentpool-75930632-1   Ready     4d        v1.7.9
k8s-master-75930632-0      Ready     4d        v1.7.9
k8s-master-75930632-1      Ready     4d        v1.7.9
k8s-master-75930632-2      Ready     4d        v1.7.9

Private IPs for agents k8s-agentpool-75930632-0 and k8s-agentpool-75930632-1 are 10.0.0.4 and 10.0.0.5 respectively.

I want to deploy containers using agent IPs and make use of them in the Azure application gateway's backend pool.

How to do that? Please share your knowledge and kubectl/docker command if you have faced a similar requirement.

-- Navlesh
azure
azure-container-service
docker
kubernetes

0 Answers