Score:0

Is that possible to assign a virtual IP to the K8s cluster

cn flag

I have HAproxy in front of my K8s cluster.

Here is my HAProxy configuration about the front-end and back-end sections to load-balancing traffic to the pod in the K8s infrastructure.

frontend kubernetes-test-frontend
    bind 10.138.1.187:30030
    mode tcp
    option tcplog
    default_backend kubernetes-test-backend

backend kubernetes-test-backend
    mode tcp
    option tcp-check
    balance roundrobin
    server k8node1 10.138.1.183:30030 check
    server k8node2 10.138.1.184:30030 check
    server k8node3 10.138.1.185:30030 check
    

I was wondering is that possible to have a VIP for the K8s cluster? What if I have 30 nodes in the backend? Should I edit the HAProxy configuration file one by one? How do people deal with a large number of nodes in the real world?

I am very new to K8s, any help is appreciated!

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.