mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 02:27:44 +08:00
27 lines
605 B
YAML
27 lines
605 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: ql3-plugin-package-management
|
|
namespace: qinglong3-system
|
|
spec:
|
|
egress:
|
|
- to:
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: kube-system
|
|
podSelector:
|
|
matchLabels:
|
|
k8s-app: kube-dns
|
|
ports:
|
|
- protocol: UDP
|
|
port: 53
|
|
- protocol: TCP
|
|
port: 53
|
|
- to:
|
|
- podSelector:
|
|
matchLabels:
|
|
cnpg.io/cluster: ql3-postgres
|
|
ports:
|
|
- protocol: TCP
|
|
port: 5432
|