Deploying HA Proxy on vSphere 7 with Tanzu Kubernetes Grid Service (TKGS)

What is VMwares Tanzu Kubernetes Grid Service (TKGS)?

Deploying TKGS

Configure networking (VDS)

Configuring our Tanzu distributed port groups
Checking our distributed port group up-links.

Configure Tanzu Storage Policy

Clone the default storage policy
Enable tag based placement rules
Add the TKG placement tag

Configure content library

https://wp-content.vmware.com/v2/latest/lib.json
Create the Tanzu content library.
https://github.com/haproxytech/vmware-haproxy
https://cdn.haproxy.com/download/haproxy/vsphere/ova/haproxy-v0.1.10.ova
Importing the Tanzu HA Proxy OVA

Deploying HA Proxy

Naming your new HA Proxy
Tanzu Frontend Network
Applying the Network configuration settings for HA Proxy
Define the root password for HA Proxy
Configuring the HA Proxy management network
Defining the HA Proxy networks
Defining the load balancer address space
Setting the data-plane password.
https://10.64.2.10:5556/v2/info
JSON output for the HA Proxy service

Checking HA Proxy

ssh root@10.64.2.10
ip a
root@haproxy01 [ ~ ]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: management: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:8f:ce:26 brd ff:ff:ff:ff:ff:ff
inet 10.64.2.10/23 brd 10.64.3.255 scope global management
valid_lft forever preferred_lft forever
3: workload: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:8f:e5:ba brd ff:ff:ff:ff:ff:ff
inet 10.64.8.10/21 brd 10.64.15.255 scope global workload
valid_lft forever preferred_lft forever
4: frontend: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:8f:3d:28 brd ff:ff:ff:ff:ff:ff
inet 10.64.0.10/23 brd 10.64.1.255 scope global frontend
valid_lft forever preferred_lft forever
systemctl list-units --state failed
systemctl status anyip-routes.service
Nov 20 15:30:07 haproxy01.test.corp anyiproutectl.sh[777]: adding route for 10.64.0.1/23
Nov 20 15:30:07 haproxy01.test.corp anyiproutectl.sh[777]: RTNETLINK answers: Invalid argument
root@haproxy01 [ ~ ]# cat /etc/vmware/anyip-routes.cfg 
#
# Configuration file that contains a line-delimited list of CIDR values
# that define the network ranges used to bind the load balancer's frontends
# to virtual IP addresses.
#
# * Lines beginning with a comment character, #, are ignored
# * This file is used by the anyip-routes service
#
10.64.1.0/24

Its all over!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store