This commit is contained in:
2024-08-24 11:33:57 -04:00
parent 2d39534023
commit a36bf31bf8
8 changed files with 391 additions and 1 deletions
+48
View File
@@ -0,0 +1,48 @@
---
# tasks file for eom
- name: Create eom namespace
k8s:
state: present
definition:
apiVersion: v1
kind: Namespace
metadata:
name: "eom-{{ target_namespace }}"
- name: Deploy eom openldap
include_tasks: openldap.yaml
- name: Deploy eom proxy
include_tasks: proxy.yaml
- name: Deploy eom git
include_tasks: git.yaml
- name: Deploy eom media
include_tasks: media.yaml
- name: Deploy eom www
include_tasks: www.yaml
- name: Create network policy
k8s:
state: present
definition:
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: restrict-external-access
namespace: "eom-{{ target_namespace }}"
spec:
podSelector:
matchExpressions:
- key: app
operator: In
values:
- proxy
policyTypes:
- Ingress
ingress:
- from:
- ipBlock:
cidr: 192.168.1.0/24