Skip to content

Instantly share code, notes, and snippets.

@haproxytechblog
Last active July 9, 2020 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haproxytechblog/6a2c8a11fe7c2f8e4ada6a503105c64b to your computer and use it in GitHub Desktop.
Save haproxytechblog/6a2c8a11fe7c2f8e4ada6a503105c64b to your computer and use it in GitHub Desktop.
Use Helm to Install the HAProxy Kubernetes Ingress Controller
$ helm repo add haproxytech https://haproxytech.github.io/helm-charts
"haproxytech" has been added to your repositories
$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "haproxytech" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈
$ helm search repo haproxy
NAME CHART VERSION APP VERSION DESCRIPTION
haproxytech/kubernetes-ingress 0.7.3 1.3.2 A
$ helm install mycontroller haproxytech/kubernetes-ingress
NAME: mycontroller
LAST DEPLOYED: Tue Mar 10 14:57:41 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
HAProxy Kubernetes Ingress Controller has been successfully installed.
$ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
mycontroller default 1 2020-03-10 15:07:00.463855042 -0400 EDT deployed kubernetes-ingress-0.7.3 1.3.2
$ helm repo update
$ helm upgrade mycontroller haproxytech/kubernetes-ingress
$ helm uninstall mycontroller
release "mycontroller" uninstalled
$ helm install mycontroller haproxytech/kubernetes-ingress \
--set-string "controller.config.ssl-redirect=false"
$ kubectl create secret tls mycert --key="mycert.key" --cert="mycert.crt"
$ helm install mycontroller haproxytech/kubernetes-ingress \
--set-string "controller.defaultTLSSecret.secret=default/mycert"
$ helm install mycontroller haproxytech/kubernetes-ingress \
--set controller.kind=DaemonSet \
--set controller.daemonset.useHostPort=true
$ helm install mycontroller haproxytech/kubernetes-ingress \
--set-string "controller.config.syslog-server=address:10.105.98.88\,facility:local0\,level:info" \
--set-string "controller.config.ssl-redirect=false"
controller:
config:
ssl-redirect: "true"
syslog-server: "address:10.105.98.88, facility:local0, level:info"
defaultTLSSecret:
enabled: true
secret: default/mycert
$ helm install mycontroller haproxytech/kubernetes-ingress --values overrides.yaml
$ helm install haproxy \
haproxytech/kubernetes-ingress \
--set-string "controller.config.syslog-server=address:stdout\, format:raw\, facility:daemon"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment