Add customer name label

This commit is contained in:
2024-08-22 16:25:32 +03:00
parent a38e0c43d4
commit 7531433a68
4 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: hello-gin
spec:
podSelector:
matchLabels:
app: hello-gin
policyTypes:
- Ingress
- Egress
ingress:
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: prometheus
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: default
podSelector:
matchLabels:
app.kubernetes.io/instance: shared
app.kubernetes.io/name: traefik