Kubernetes by Philippe Martin

Kubernetes by Philippe Martin

Author:Philippe Martin
Language: eng
Format: epub
ISBN: 9781484264942
Publisher: Apress


Then add a section to the Ingress resource:apiVersion: extensions/v1beta1

kind: Ingress

metadata:

name: plex-ingress

spec:

tls:

- hosts:

- echo.com

secretName: echo-ingress-tls

rules:

- host: webapp.com

http:

paths:

- path: /

backend:

serviceName: webapp

servicePort: 80

- host: echo.com

http:

paths:

- path: /

backend:

serviceName: echo

servicePort: 3000

With these changes, the echo.com requests will now use this new certificate:$ curl -k -v --resolve echo.com:$HTTPS_PORT:$WORKER_IP https://echo.com:$HTTPS_PORT/

[...]

* Server certificate:

* subject: CN=echo.com; O=echo-ingress-tls

* start date: Jan 17 18:10:33 2020 GMT

* expire date: Jan 16 18:10:33 2021 GMT

* issuer: CN=echo.com; O=echo-ingress-tls

* SSL certificate verify result: self signed certificate (18), continuing anyway.

[...]



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.