Updated network policy rules.
This commit is contained in:
Родитель
60d847856d
Коммит
99bf0d425b
|
@ -1,5 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: kube-system
|
||||
labels:
|
||||
app: kube-system
|
||||
control-plane: controller-manager
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: dev
|
||||
labels:
|
||||
|
|
|
@ -51,7 +51,21 @@ spec:
|
|||
- Ingress
|
||||
- Egress
|
||||
ingress:
|
||||
- {}
|
||||
- from: []
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
- from:
|
||||
- ipBlock:
|
||||
cidr: 100.64.1.0/24
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
- podSelector: {}
|
||||
egress:
|
||||
- to:
|
||||
- podSelector: {}
|
||||
|
|
Загрузка…
Ссылка в новой задаче