Skip to content

Instantly share code, notes, and snippets.

@younes200
Created August 26, 2018 11:29
Show Gist options
  • Save younes200/9c46489d7ddb1fe148f0e47913bd9abf to your computer and use it in GitHub Desktop.
Save younes200/9c46489d7ddb1fe148f0e47913bd9abf to your computer and use it in GitHub Desktop.
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