Restructure Scope and add Net deployement
This commit is contained in:
parent
adc365c2fb
commit
6bb4dfc922
19 changed files with 675 additions and 14 deletions
|
|
@ -1,7 +1,19 @@
|
|||
- debug: var=my_context
|
||||
tags: prom
|
||||
---
|
||||
- name: Weave Net setup
|
||||
block:
|
||||
- name: Weave Net files
|
||||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
with_items:
|
||||
- "{{ weave_net_files }}"
|
||||
when:
|
||||
- kubernetes_network == "weave-net"
|
||||
tags: weave
|
||||
|
||||
- name: Weave setup
|
||||
- name: Weave Scope setup
|
||||
block:
|
||||
- name: namespace
|
||||
k8s:
|
||||
|
|
@ -67,14 +79,6 @@
|
|||
merge_type: merge
|
||||
resource_definition: "{{ lookup('template', item) | from_yaml }}"
|
||||
with_items:
|
||||
- scope/psp.yaml.j2
|
||||
- scope/cluster-role-binding.yaml.j2
|
||||
- scope/cluster-role.yaml.j2
|
||||
- scope/sa.yaml.j2
|
||||
- scope/svc.yaml.j2
|
||||
- scope/ds.yaml.j2
|
||||
- scope/probe-deploy.yaml.j2
|
||||
- scope/deploy.yaml.j2
|
||||
- scope/weave_ingress.yaml.j2
|
||||
- "{{ weave_scope_files }}"
|
||||
tags: weave
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue