[COMMON] Add TLS for Ingress configuration 35/114235/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 26 Oct 2020 12:34:18 +0000 (13:34 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 26 Oct 2020 16:48:44 +0000 (17:48 +0100)
commit80a32b94ca05c392d49a0abaeeec27e859358633
tree92cbdb07bb14cb1d7585a1845c60a48aad63c00e
parent951290ba262db65ac7f6cdfb659987cb394916ee
[COMMON] Add TLS for Ingress configuration

Instead of setting TLS termination at POD level, it may be interesting
to terminate it at Ingress level.
This patch add the ability to do that using "Ingress" templates.
In order to achieve it, you need to configure it this way in
`values.yaml`:

```yaml
ingress:
  enabled: false
  service:
    - baseaddr: 'my-endpoint'
      name: 'my-service'
      port: 8080
  config:
    tls:
      secret: my-service-ingress-certs
```

Secret (here `my-service-ingress-certs`) must follow Kubernetest
`kubernetes.io/tls` type: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls

Issue-ID: SO-3078
Issue-ID: SO-3237
Issue-ID: OOM-2609
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I76c0929d53289a581bc26d0d03cc8b9bd72d0fd1
kubernetes/common/common/templates/_ingress.tpl