mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
487d08ad11
Signed-off-by: Manuel Buil <mbuil@suse.com>
20 lines
343 B
YAML
20 lines
343 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: test-network-policy
|
|
namespace: default
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
k8s-app: nginx-app-clusterip
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
app: whatever
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|