Score:1

how to configure ingress controller in kubernetes cluster over bare metal system?

cn flag

Is there any way to assign static IP to Kubernetes cluster, in which any user can able to access its application over static IP only.

for an example, I have set up a cluster over 192.168.0.131 (master), 192.168.0.132(worker1) and 192.168.0.133(worker 2). One dotnet application is running on nodeport 32000, which is accessible over all the cluster as expected.

Now I have to assign one IP which communicate to this cluster and user can get access on that. Also is there any way that we can use this IP for other applications as well which can be differentiate based on different ports not nodeport.

FYI, I am using kubernetes cluster over bare metal.

Mikolaj S. avatar
cn flag
Hi @Bhargav Lalaji, any progress?
Bhargav Lalaji avatar
cn flag
@MikolajS., check this out ,https://devops.stackexchange.com/questions/14577/how-to-assign-static-ip-to-kubernetes-cluster
cn flag
Does this answer your question? [What network file sharing protocol has the best performance and reliability?](https://serverfault.com/questions/14577/what-network-file-sharing-protocol-has-the-best-performance-and-reliability)
Score:0
ly flag

To reuse single IP for multiple projects, as long as we're talking HTTP, I suggest you use Ingress and deploy IngressController like nginx-ingess, traefik or similar. That way any http traffic will be served over single http IP / port using vhosts managed by IngressController.

The problem remains to expose a NodePort based service over a single IP. For an on prem, I'd probably run something like HA Proxy on a known IP (maybe master node) and use it to direct traffic to nodePort service of ingress controller or configure some loadbalancer/router you have in your network to do so. Alternatively you could run ingress directly on master node with nodePort or hostNetwork: true

Bhargav Lalaji avatar
cn flag
it is very helpful for me, if you share any link of it. because I have tried that one still somehow I am not getting success on it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.