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
1,291 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.

Hope it helps!

To know more, join our Kubernetes Training in Pondicherry today.

answered Oct 29, 2020 by Sam

edited Oct 6, 2021 by Sarfaraz

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
19,748 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,230 points
2,600 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 5, 2020 in Kubernetes by jayabmaguluri
• 140 points
1,028 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,460 points
1,938 views
0 votes
1 answer

How to solve the issue with crashloopbackoff in my kubernetes Pod?

If your image is completed and not ...READ MORE

answered Sep 21, 2020 in Kubernetes by Jai

edited Oct 6, 2021 by Sarfaraz 2,060 views
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
2,471 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
15,574 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP