Merge pull request #1251 from jcmoraisjr/jm-haproxy-ingress-class
Add ingress.class support to HAProxy Ingress
This commit is contained in:
commit
69c89ccfdd
9 changed files with 12 additions and 30 deletions
|
@ -12,9 +12,6 @@ This document has the following prerequisites:
|
||||||
end up with controller, a sample web app and an ingress resource to the `foo.bar`
|
end up with controller, a sample web app and an ingress resource to the `foo.bar`
|
||||||
domain
|
domain
|
||||||
|
|
||||||
As mentioned in the deployment instructions, you MUST turn down any existing
|
|
||||||
ingress controllers before running HAProxy Ingress.
|
|
||||||
|
|
||||||
## Using Basic Authentication
|
## Using Basic Authentication
|
||||||
|
|
||||||
HAProxy Ingress read user and password from `auth` file stored on secrets, one user
|
HAProxy Ingress read user and password from `auth` file stored on secrets, one user
|
||||||
|
|
|
@ -17,9 +17,6 @@ following these steps you should have a secret named `caingress`, a certificate
|
||||||
* Use these same steps and create another CA and generate another certificate and private
|
* Use these same steps and create another CA and generate another certificate and private
|
||||||
key `fake.crt` and `fake.key` just for testing
|
key `fake.crt` and `fake.key` just for testing
|
||||||
|
|
||||||
As mentioned in the deployment instructions, you MUST turn down any existing
|
|
||||||
ingress controllers before running HAProxy Ingress.
|
|
||||||
|
|
||||||
Secret, certificates and keys can be created using these shortcuts:
|
Secret, certificates and keys can be created using these shortcuts:
|
||||||
|
|
||||||
CA and it's secret:
|
CA and it's secret:
|
||||||
|
|
|
@ -8,9 +8,6 @@ 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](../../../deployment/haproxy/)
|
||||||
|
|
||||||
As mentioned in the deployment instructions, you MUST turn down any existing
|
|
||||||
ingress controllers before running HAProxy Ingress.
|
|
||||||
|
|
||||||
## Customize the HAProxy configuration
|
## Customize the HAProxy configuration
|
||||||
|
|
||||||
Using a [ConfigMap](https://kubernetes.io/docs/user-guide/configmap/) is possible to customize the HAProxy configuration.
|
Using a [ConfigMap](https://kubernetes.io/docs/user-guide/configmap/) is possible to customize the HAProxy configuration.
|
||||||
|
|
|
@ -4,10 +4,10 @@ In some cases, the Ingress controller will be required to be run at all the node
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
This ingress controller doesn't yet have support for
|
If you have another Ingress controller deployed, you will need to make sure your
|
||||||
[ingress classes](/examples/PREREQUISITES.md#ingress-class). You MUST turn
|
Ingress resources target exactly one Ingress controller by specifying the
|
||||||
down any existing ingress controllers before running HAProxy Ingress controller or
|
[ingress.class](/examples/PREREQUISITES.md#ingress-class) annotation as
|
||||||
they will fight for Ingresses. This includes any cloudprovider controller.
|
`haproxy`.
|
||||||
|
|
||||||
This document has also the following prerequisites:
|
This document has also the following prerequisites:
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ for instructions on how to create a new one.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
This ingress controller doesn't yet have support for
|
If you have another Ingress controller deployed, you will need to make sure your
|
||||||
[ingress classes](/examples/PREREQUISITES.md#ingress-class). You MUST turn
|
Ingress resources target exactly one Ingress controller by specifying the
|
||||||
down any existing ingress controllers before running HAProxy Ingress controller or
|
[ingress.class](/examples/PREREQUISITES.md#ingress-class) annotation as
|
||||||
they will fight for Ingresses. This includes any cloudprovider controller.
|
`haproxy`.
|
||||||
|
|
||||||
This document has also the following prerequisites:
|
This document has also the following prerequisites:
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,6 @@ This document has the following prerequisites:
|
||||||
* Deploy [HAProxy Ingress controller](/examples/deployment/haproxy), you should end up with controller, a sample web app and default TLS secret
|
* Deploy [HAProxy Ingress controller](/examples/deployment/haproxy), you should end up with controller, a sample web app and default TLS secret
|
||||||
* Create [*two* secrets](/examples/PREREQUISITES.md#tls-certificates) named `foobar-ssl` with subject `'/CN=foo.bar'` and `barfoo-ssl` with subject `'/CN=bar.foo'`
|
* Create [*two* secrets](/examples/PREREQUISITES.md#tls-certificates) named `foobar-ssl` with subject `'/CN=foo.bar'` and `barfoo-ssl` with subject `'/CN=bar.foo'`
|
||||||
|
|
||||||
As mentioned in the deployment instructions, you MUST turn down any existing
|
|
||||||
ingress controllers before running HAProxy Ingress.
|
|
||||||
|
|
||||||
## Using a new TLS certificate
|
## Using a new TLS certificate
|
||||||
|
|
||||||
Update ingress resource in order to add TLS termination to two hosts:
|
Update ingress resource in order to add TLS termination to two hosts:
|
||||||
|
|
|
@ -12,9 +12,6 @@ the `foo.bar` domain
|
||||||
* Configure only the default [TLS termination](/examples/tls-termination/haproxy) -
|
* Configure only the default [TLS termination](/examples/tls-termination/haproxy) -
|
||||||
there is no need to create another secret
|
there is no need to create another secret
|
||||||
|
|
||||||
As mentioned in the deployment instructions, you MUST turn down any existing
|
|
||||||
ingress controllers before running HAProxy Ingress.
|
|
||||||
|
|
||||||
## Annotations
|
## Annotations
|
||||||
|
|
||||||
The following annotations are implemented:
|
The following annotations are implemented:
|
||||||
|
|
|
@ -4,10 +4,10 @@ This example aims to demonstrate the Deployment of multi haproxy ingress control
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
This ingress controller doesn't yet have support for
|
If you have another Ingress controller deployed, you will need to make sure your
|
||||||
[ingress classes](/examples/PREREQUISITES.md#ingress-class). You MUST turn
|
Ingress resources target exactly one Ingress controller by specifying the
|
||||||
down any existing ingress controllers before running HAProxy Ingress controller or
|
[ingress.class](/examples/PREREQUISITES.md#ingress-class) annotation as
|
||||||
they will fight for Ingresses. This includes any cloudprovider controller.
|
`haproxy`.
|
||||||
|
|
||||||
This document has also the following prerequisites:
|
This document has also the following prerequisites:
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,6 @@ This document has the following prerequisites:
|
||||||
* Deploy [HAProxy Ingress controller](/examples/deployment/haproxy), you should end up with controller, a sample web app and default TLS secret
|
* Deploy [HAProxy Ingress controller](/examples/deployment/haproxy), you should end up with controller, a sample web app and default TLS secret
|
||||||
* Create [*another* secret](/examples/PREREQUISITES.md#tls-certificates) named `foobar-ssl` and subject `'/CN=foo.bar'`
|
* Create [*another* secret](/examples/PREREQUISITES.md#tls-certificates) named `foobar-ssl` and subject `'/CN=foo.bar'`
|
||||||
|
|
||||||
As mentioned in the deployment instructions, you MUST turn down any existing
|
|
||||||
ingress controllers before running HAProxy Ingress.
|
|
||||||
|
|
||||||
## Using default TLS certificate
|
## Using default TLS certificate
|
||||||
|
|
||||||
Update ingress resource in order to add TLS termination to host `foo.bar`:
|
Update ingress resource in order to add TLS termination to host `foo.bar`:
|
||||||
|
|
Loading…
Reference in a new issue