---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
labels: {app: my-app}
name: my-app
namespace: production
spec:
tls:
- secretName: my-domain-com-tls
hosts:
- my-domain.com
rules:
- host: my-domain.com
http:
paths:
- {path: '/my-other-app', pathType: Prefix, backend: {service: {name: my-other-app, port: {name: http}}}}
- {path: '/', pathType: Prefix, backend: {service: {name: my-app, port: {name: http}}}}
# handle other domains, but without tls
- http:
paths:
- {path: '/my-other-app', pathType: Prefix, backend: {service: {name: my-other-app, port: {name: http}}}}
- {path: '/', pathType: Prefix, backend: {service: {name: my-app, port: {name: http}}}}
---
apiVersion: v1
kind: Secret
metadata:
annotations:
kubernetes.io/tls-acme: "true"
labels: {app: my-app}
name: my-domain-com-tls
namespace: production
type: kubernetes.io/tls
stringData:
tls.crt: |
-----BEGIN CERTIFICATE-----
MIIFTDCCAzSgAwIBAgIUfwhMolj6ID+hqe4HITYv+9AELHAwDQYJKoZIhvcNAQEL
BQAwGDEWMBQGA1UEAwwNbXktZG9tYWluLmNvbTAeFw0xOTA3MjIwMTI1MTdaFw0y
MDA3MjEwMTI1MTdaMBgxFjAUBgNVBAMMDW15LWRvbWFpbi5jb20wggIiMA0GCSqG
SIb3DQEBAQUAA4ICDwAwggIKAoICAQC7jcVarsd7C45oSY+k0OWuKf1UZAmcH04g
YRxJobc/p3TawYIX4cffYDEu5bsDv/41NLZe8zsuYE/rGpMmIu4J7w64Cp25msxV
7pblquHYEJlcHJsQrxuvRCjAADhBknZAiOTIEaFzTZ+66HFrvgbWeqVkBmlWBKh+
wfec9XO67FJQyPBoYs9k7bgJnq8qMexRcQR8nSaNYgHSjV6Gd7kgoVlU/US7QUVi
GLh0aMH2jqihOIibr45/kAQPWXnhaKcQn1Sji8+07xBn6GF/T+9p2JEQ/YIKMcpH
Sr3QCPaYNLSIc+qEFqa9J7+Z1DvkfDpoBlv03SC6uX2aXHQJDk9ONEX6vzbsK6YZ
EcSr7uRlNsskeO+DS5UI8GGK7XdUjQ1NIACD2kQ+583G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