Update for traefik 2.0
This commit is contained in:
parent
bf94bf993c
commit
5fbb40ffda
3 changed files with 87 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
|||
api_version: v1
|
||||
kind: Namespace
|
||||
|
||||
- name: Create a Secret object for basic authentification
|
||||
- name: Create a Secret object for basic authentification (traefik 1.7)
|
||||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
|
|
@ -26,8 +26,39 @@
|
|||
basic_auth: "{{ basic_auth_data | b64encode }}"
|
||||
when:
|
||||
- basic_auth == true
|
||||
- traefik_version is not defined or traefik_version == "1.7"
|
||||
tags: weave
|
||||
|
||||
- name: Remove a Secret object for basic authentification (traefik 1.7)
|
||||
k8s:
|
||||
state: absent
|
||||
context: "{{ my_context }}"
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: basic-auth
|
||||
namespace: weave
|
||||
type: Opaque
|
||||
data:
|
||||
basic_auth: "{{ basic_auth_data | b64encode }}"
|
||||
when:
|
||||
- traefik_version is defined
|
||||
- traefik_version != "1.7"
|
||||
tags: weave
|
||||
|
||||
- name: Remove old existing Ingress object
|
||||
k8s:
|
||||
context: "{{ my_context }}"
|
||||
state: absent
|
||||
api_version: extensions/v1beta1
|
||||
kind: Ingress
|
||||
namespace: weave
|
||||
name: weave
|
||||
when:
|
||||
- traefik_version is defined
|
||||
- traefik_version != "1.7"
|
||||
|
||||
# file found https://github.com/weaveworks/scope/tree/master/examples/k8s/
|
||||
- name: Weave Scope files
|
||||
k8s:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue