Can we reach a server running inside kubernetes Cluster from Outside?

1/15/2019

I have a requirement that the server that is running inside one of my container in a k8s cluster should be able to reach a server that is running in some other machine (currently its in AWS).Now the problem is that both the server (in AWS & Kubernetes Cluster) should be able to reach each other.

My server in AWS is not able to ping my Server running in Kubernetes Cluster.

Is that possible? Can we do it ?

-- Avinash Kumar
google-cloud-platform
kubernetes

2 Answers

1/15/2019

Yes you can use ingress-nginx to create publicly reachable services ingress-nginx

If you want to do it manually you can setup load balancers that map to specific ip ranges for your nodes. This is for ssh traffic.

-- David Webster
Source: StackOverflow

1/16/2019

yes you can use ingress kubernetes object it will create publicly reachable services.

Mainly if you are using aws or digital-ocean and you will use ingress it will make load balancer (ELB or ALB) and make public service and you can access server running inside kubernetes

By manually also you can do it just simply use kubernetes service and expose it using load balancer and NODE port

https://kubernetes.io/docs/concepts/services-networking/service/
-- Harsh Manvar
Source: StackOverflow