2022-01-03 08:37:09 +01:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: NetworkPolicy
|
|
|
|
metadata:
|
|
|
|
name: proxy
|
2022-01-07 22:19:23 +01:00
|
|
|
namespace: tacticalrmm
|
2022-01-03 08:37:09 +01:00
|
|
|
spec:
|
|
|
|
ingress:
|
|
|
|
- {}
|
|
|
|
podSelector:
|
|
|
|
matchLabels:
|
|
|
|
network/proxy: "true"
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: NetworkPolicy
|
|
|
|
metadata:
|
|
|
|
name: api-db
|
|
|
|
namespace: tacticalrmm
|
|
|
|
spec:
|
|
|
|
ingress:
|
|
|
|
- from:
|
|
|
|
- podSelector:
|
|
|
|
matchLabels:
|
|
|
|
network/api-db: "true"
|
|
|
|
- podSelector:
|
|
|
|
matchLabels:
|
|
|
|
network/proxy: "true"
|
|
|
|
podSelector:
|
|
|
|
matchLabels:
|
|
|
|
network/api-db: "true"
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: NetworkPolicy
|
|
|
|
metadata:
|
|
|
|
name: mesh-db
|
|
|
|
namespace: tacticalrmm
|
|
|
|
spec:
|
|
|
|
ingress:
|
|
|
|
- from:
|
|
|
|
- podSelector:
|
|
|
|
matchLabels:
|
|
|
|
network/mesh-db: "true"
|
|
|
|
- podSelector:
|
|
|
|
matchLabels:
|
|
|
|
network/proxy: "true"
|
|
|
|
podSelector:
|
|
|
|
matchLabels:
|
|
|
|
network/mesh-db: "true"
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: NetworkPolicy
|
|
|
|
metadata:
|
|
|
|
name: redis
|
|
|
|
namespace: tacticalrmm
|
|
|
|
spec:
|
|
|
|
ingress:
|
|
|
|
- from:
|
|
|
|
- podSelector:
|
|
|
|
matchLabels:
|
|
|
|
network/redis: "true"
|
|
|
|
podSelector:
|
|
|
|
matchLabels:
|
|
|
|
network/redis: "true"
|