Files
kubernetes-advanced/network-policy/web-client/4-allow-http.yaml
Thomas Kruse 24b9717db2 init
2026-09-02 22:11:05 +02:00

21 lines
392 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-client-to-web
namespace: isolated
spec:
podSelector:
matchLabels:
app: web
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app: client
ports:
- protocol: TCP
port: 80
- protocol: TCP
port: 3000