LoadBalancers

How to install LoadBalancers to your Cluster

Prepare the configuration file prod.yaml

yaml:
  tenantName: "kubernetes"
  clusterName: "<cluster_name>"
  subnetId: "<kubernetes_subnet_id>"
  flavorId: "<flavorId_for_loadbalancing_instances>"
  publicKey: "<public_key_matching_the_ssh_key_below>"
  floatingNetworkId: "<floating_network_id_for_loadbalancing>"
  identityEndpoint: "<openstack_identity_endpoint>"
  userName:         "<openstack_username>>"
  password:         "<openstack_password>"
  domainName: "default"
  keepalivedRouterIdRange: "1-255"
ssh_key: |
  SSH_PRIVATE_KEY

Add Itera Helm Chart Repository

helm repo add itera https://repo.itera.io/repository/itera --kubeconfig=admin.conf

Install taikun-lb using helm

helm upgrade --install itera-lb -f prod.yaml --namespace=kube-system itera/taikun-lb --kubeconfig=admin.conf

Check taikun-lb is installed

export KUBECONFIG=admin.conf; kubectl get pod

Install a test application (in this case wordpress from bitnami)

helm install test-lb bitnami/wordpress --kubeconfig=admin.conf

Wait for the service to get a floating IP assigned

kubectl get svc test-lb-wordpress

To enable proxy service for the service, add the following annotation to the service:

This is the way to restrict which IP has access to the service (https://www.haproxy.com/blog/haproxy/proxy-protocol/) for example:

Last updated

Was this helpful?