Created
August 26, 2018 11:29
-
-
Save younes200/9c46489d7ddb1fe148f0e47913bd9abf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: voyager.appscode.com/v1beta1 | |
kind: Ingress | |
metadata: | |
name: api-ingress | |
namespace: default | |
annotations: | |
ingress.appscode.com/rewrite-target: / | |
ingress.appscode.com/keep-source-ip: "true" | |
ingress.appscode.com/hsts: "true" | |
ingress.appscode.com/hsts-preload: "true" | |
ingress.appscode.com/hsts-include-subdomains: "true" | |
ingress.appscode.com/hsts-max-age: "100" | |
spec: | |
tls: | |
- hosts: | |
- api.myapp.com | |
ref: | |
kind: Secret | |
name: myapp-tls | |
rules: | |
- host:api.beta.myapp.com | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: api-beta-myapp | |
servicePort: 80 | |
alpn: | |
- h2 | |
- http/1.1 | |
- http/1.0 | |
- host: api.myapp.com | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: api-production-myapp | |
servicePort: 80 | |
alpn: | |
- h2 | |
- http/1.1 | |
- http/1.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment