Created
April 29, 2018 10:01
-
-
Save trondhindenes/2a46a33005f1eae923167e7b8894a547 to your computer and use it in GitHub Desktop.
This file contains 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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: config-ansiblejobservicefrontend-v{{ major_version }}-{{ environment }}-{{ environmentid }}-httpsecure | |
namespace: sre | |
annotations: | |
traefik.frontend.passHostHeader: "true" | |
labels: | |
expose: internal-httpsecure | |
spec: | |
rules: | |
{% if environment == 'prod'%} | |
- host: prod-url.stuff.com | |
{% endif %} | |
{% if environment == 'dev'%} | |
- host: dev-url.stuff.com | |
{% endif %} | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: config-ansiblejobservicefrontend-v{{ major_version }}-{{ environment }}-{{ environmentid }} | |
servicePort: http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment