mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 18:08:20 +08:00
39 lines
1004 B
YAML
39 lines
1004 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: ql3-plugin-package-management
|
|
namespace: qinglong3-system
|
|
labels:
|
|
app.kubernetes.io/name: ql3-plugin-package-management
|
|
app.kubernetes.io/component: plugin-package-management
|
|
app.kubernetes.io/part-of: qinglong3
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: ql3-plugin-package-management
|
|
app.kubernetes.io/component: plugin-package-management
|
|
policyTypes:
|
|
- Ingress
|
|
- Egress
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
qinglong.io/plugin-package-management-client: 'true'
|
|
ports:
|
|
- protocol: TCP
|
|
port: 8443
|
|
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
|