24 lines
597 B
YAML
24 lines
597 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: nexus-ingress
|
|
namespace: nexus
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: nexus
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- from:
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: envoy-gateway-system
|
|
podSelector:
|
|
matchLabels:
|
|
gateway.envoyproxy.io/owning-gateway-name: eg
|
|
gateway.envoyproxy.io/owning-gateway-namespace: envoy-gateway-system
|
|
ports:
|
|
- protocol: TCP
|
|
port: 8081
|