Add namespace var to HAProxy deployments
This commit is contained in:
parent
a8bfdc2427
commit
46865d010b
5 changed files with 14 additions and 17 deletions
|
|
@ -6,7 +6,7 @@ This example uses a [ConfigMap](https://kubernetes.io/docs/user-guide/configmap/
|
|||
|
||||
This document has the following prerequisites:
|
||||
|
||||
Deploy only the tls-secret and the default backend from the [deployment instructions](../../../deployment/haproxy/)
|
||||
Deploy only the tls-secret and the default backend from the [deployment instructions](/examples/deployment/haproxy)
|
||||
|
||||
## Customize the HAProxy configuration
|
||||
|
||||
|
|
@ -15,16 +15,17 @@ Using a [ConfigMap](https://kubernetes.io/docs/user-guide/configmap/) is possibl
|
|||
For example, if we want to change the syslog-endpoint we need to create a ConfigMap:
|
||||
|
||||
```
|
||||
$ kubectl create configmap haproxy-conf --from-literal=syslog-endpoint=172.17.8.101
|
||||
|
||||
$ kubectl create configmap haproxy-ingress --from-literal=syslog-endpoint=172.17.8.101
|
||||
```
|
||||
|
||||
Create the HAProxy Ingress deployment:
|
||||
|
||||
```
|
||||
$ kubectl create -f haproxy-custom-configuration.yaml
|
||||
```
|
||||
|
||||
The only difference from the deployment instructions is the --configmap parameter:
|
||||
|
||||
```
|
||||
- --configmap=default/haproxy-conf
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue