How to deploy the pod in k8s connect to 3rd party server which using whitelist IP

0 votes
Hi guys,

Do you know that way to deploy the pod in k8s connect to 3rd party server which using whitelist IP?
Oct 29, 2020 in Kubernetes by anonymous
• 19,610 points
171 views

1 answer to this question.

0 votes
Hey,

You can connect the pod and the external server to the same endpoint.

You can mention the external server's endpoint in your ConfigMaps.

You can then use this endpoint directly in your code as an environment variable. But there are many scenerios where this method is not the best way to go about it.
answered Oct 29, 2020 by Sam

Related Questions In Kubernetes

0 votes
2 answers

Using a local image to create a pod in K8s

I'm not sure but you can try ...READ MORE

answered Apr 29, 2019 in Kubernetes by Vishaka
17,319 views
+1 vote
1 answer

How to use a Volume to communicate between two Containers running in the same Kubernetes-Pod?

Create a Pod that runs two Containers Create a ...READ MORE

answered Jul 23, 2019 in Kubernetes by Sirajul
• 59,070 points
1,324 views
0 votes
0 answers

How to access the configmap created on a worker node, in the pod.yaml in Master?

1. Configmap is created on the node1. ...READ MORE

Apr 4, 2020 in Kubernetes by jayabmaguluri
• 140 points
249 views
0 votes
1 answer

How to deploy Jenkins pod in minikube?

Hi@akhtar, In minikube you don't have to download ...READ MORE

answered May 19, 2020 in Kubernetes by MD
• 95,200 points
854 views
0 votes
1 answer
0 votes
1 answer

Pods IP address from inside a container in the pod

Make sure that your pod yaml file ...READ MORE

answered Aug 29, 2018 in Kubernetes by Kalgi
• 52,350 points
810 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
10,508 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 52,350 points

reshown Apr 12, 2019 by Kalgi 3,288 views