Fix ingress template
This commit is contained in:
parent
6291ae29aa
commit
3928bcfa9b
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
{% if traefik_version | regex_search('(1.)') %}
|
{% if traefik_version | regex_search('(^1.)') %}
|
||||||
#will not work: weave hate https...
|
#will not work: weave hate https...
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
|
@ -25,7 +25,7 @@ spec:
|
||||||
serviceName: weave-scope-app
|
serviceName: weave-scope-app
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if traefik_version | regex_search('(2.)') %}
|
{% if traefik_version | regex_search('(^2.)') %}
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue