Last active
July 9, 2020 20:30
-
-
Save haproxytechblog/6a2c8a11fe7c2f8e4ada6a503105c64b to your computer and use it in GitHub Desktop.
Use Helm to Install the HAProxy Kubernetes Ingress Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ helm repo add haproxytech https://haproxytech.github.io/helm-charts | |
"haproxytech" has been added to your repositories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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!⎈ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ helm search repo haproxy | |
NAME CHART VERSION APP VERSION DESCRIPTION | |
haproxytech/kubernetes-ingress 0.7.3 1.3.2 A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ helm repo update | |
$ helm upgrade mycontroller haproxytech/kubernetes-ingress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ helm uninstall mycontroller | |
release "mycontroller" uninstalled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ helm install mycontroller haproxytech/kubernetes-ingress \ | |
--set-string "controller.config.ssl-redirect=false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kubectl create secret tls mycert --key="mycert.key" --cert="mycert.crt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ helm install mycontroller haproxytech/kubernetes-ingress \ | |
--set-string "controller.defaultTLSSecret.secret=default/mycert" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ helm install mycontroller haproxytech/kubernetes-ingress \ | |
--set controller.kind=DaemonSet \ | |
--set controller.daemonset.useHostPort=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
controller: | |
config: | |
ssl-redirect: "true" | |
syslog-server: "address:10.105.98.88, facility:local0, level:info" | |
defaultTLSSecret: | |
enabled: true | |
secret: default/mycert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ helm install mycontroller haproxytech/kubernetes-ingress --values overrides.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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