Add NetworkPolicies
This commit is contained in:
parent
07283a2243
commit
63318b11b9
4 changed files with 39 additions and 5 deletions
|
|
@ -4,9 +4,12 @@
|
|||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
with_items:
|
||||
- "kubernetes-dashboard-Namespace.yaml"
|
||||
- NetworkPolicies/default-deny-all.yaml
|
||||
- NetworkPolicies/allow-from-namespaces.yaml
|
||||
- "kubernetes-dashboard-ServiceAccount.yaml"
|
||||
- "kubernetes-dashboard-Service.yaml"
|
||||
- "kubernetes-dashboard-certs-Secret.yaml"
|
||||
|
|
@ -35,6 +38,7 @@
|
|||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
definition:
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
|
|
@ -53,6 +57,7 @@
|
|||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
resource_definition: "{{ lookup('template', item) | from_yaml }}"
|
||||
with_items:
|
||||
- dashboard-ingress.yaml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue