Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 2.93 KB

README.md

File metadata and controls

75 lines (52 loc) · 2.93 KB

Service LoadBalancer Helm Chart

Credit: Guang Ya Liu

This repo is forked from https://github.com/gyliu513/work/tree/master/k8s/charts/keepalived/chart/keepalived for easy clone without having to go through several other works of Guang Ya Liu

Prerequisites

ipvs module is required by the vip manager.

Make sure that the ip_vs module is loaded.

# lsmod| grep ^ip_vs

If no ip_vs module is loaded, install ipvsadm

# yum -y install ipvsadm

# ipvsadm -ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn

# lsmod | grep ^ip_vs
ip_vs                 145497  0

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release --namespace my-namespace chart/keepalived

Another example: To use few IP address from the available subnet

echo Use subnet mask 29 to reserve 6 hosts in 192.168.142.248/29 Class C network.
echo keepalivedCloudProvider.serviceIPRange="192.168.142.248/29"

helm install . --name keepalived --namespace istio-system \
 --set keepalivedCloudProvider.serviceIPRange="192.168.142.248/29"

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete --purge my-release

The command removes all the Kubernetes resources associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the Prometheus chart and their default values.

Parameter Description Default
imagePullPolicy image pull policy IfNotPresent
imagePullSecrets image pull secret None
nodeSelector node selector of keepalived load balancer None
tolerations toleration of keepalived load balancer None
keepalivedCloudProvider.image.repository image repository name of keepalived cloud provider quay.io/munnerz/keepalived-cloud-provider
keepalivedCloudProvider.image.tag image tag name of keepalived cloud provider 0.0.1
keepalivedCloudProvider.resources resource request/limit of keepalived cloud provider {}
keepalivedCloudProvider.serviceIPRange service IP range of external cloud provider 192.168.1.0/24
keepalivedVIPManager.image.repository image repository name of keepalived VIP manager gcr.io/google_containers/kube-keepalived-vip
keepalivedVIPManager.image.tag image tag name of keepalived VIP manager 0.9
keepalivedVIPManager.resources resource request/limit of keepalived VIP manager {}