Kubernetes Helm : How to pass external Ip of dependent service at pod definition?

5/4/2018

Use Case: We have created two services S1 & S2 in k8s cluster. The service S2 is dependent on service S1. S1 is created with type LoadBalancer which needs to access outside the kubernetes cluster. The user will only be authenticated at S2. So, the user calls S2 API to get the endpoint of S1 which is nothing but External IP.

Using helm how do we pass the External IP of S1 to the pod of S2 at runtime?

-- ravi
kubernetes
kubernetes-helm

0 Answers