Skip to content

Instantly share code, notes, and snippets.

@trondhindenes
Created April 29, 2018 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trondhindenes/2a46a33005f1eae923167e7b8894a547 to your computer and use it in GitHub Desktop.
Save trondhindenes/2a46a33005f1eae923167e7b8894a547 to your computer and use it in GitHub Desktop.
---
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