mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 08:37:56 +02:00
Fixed network policies for host routing
This commit is contained in:
@@ -30,40 +30,8 @@ specs:
|
|||||||
- world
|
- world
|
||||||
toPorts:
|
toPorts:
|
||||||
- ports:
|
- ports:
|
||||||
- port: '443'
|
|
||||||
protocol: TCP
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: NetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: hubble-relay
|
|
||||||
namespace: kube-system
|
|
||||||
spec:
|
|
||||||
podSelector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: hubble-relay
|
|
||||||
policyTypes:
|
|
||||||
- Ingress
|
|
||||||
- Egress
|
|
||||||
ingress:
|
|
||||||
- from:
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: hubble-ui
|
|
||||||
ports:
|
|
||||||
- port: '80'
|
|
||||||
protocol: TCP
|
|
||||||
- port: '4245'
|
|
||||||
protocol: TCP
|
|
||||||
egress:
|
|
||||||
- to:
|
|
||||||
- namespaceSelector:
|
|
||||||
matchLabels:
|
|
||||||
kubernetes.io/metadata.name: kube-system
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: kube-dns
|
|
||||||
ports:
|
|
||||||
- port: '53'
|
- port: '53'
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
- port: '443'
|
||||||
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -16,8 +16,6 @@ specs:
|
|||||||
io.cilium.k8s.policy.serviceaccount: hubble-ui
|
io.cilium.k8s.policy.serviceaccount: hubble-ui
|
||||||
toPorts:
|
toPorts:
|
||||||
- ports:
|
- ports:
|
||||||
- port: '80'
|
|
||||||
protocol: TCP
|
|
||||||
- port: '4245'
|
- port: '4245'
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- endpointSelector:
|
- endpointSelector:
|
||||||
@@ -37,40 +35,10 @@ specs:
|
|||||||
- world
|
- world
|
||||||
toPorts:
|
toPorts:
|
||||||
- ports:
|
- ports:
|
||||||
- port: '443'
|
|
||||||
protocol: TCP
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: NetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: hubble-ui
|
|
||||||
namespace: kube-system
|
|
||||||
spec:
|
|
||||||
podSelector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: hubble-ui
|
|
||||||
policyTypes:
|
|
||||||
- Egress
|
|
||||||
egress:
|
|
||||||
- to:
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: hubble-relay
|
|
||||||
ports:
|
|
||||||
- port: '80'
|
|
||||||
protocol: TCP
|
|
||||||
- port: '4245'
|
|
||||||
protocol: TCP
|
|
||||||
- to:
|
|
||||||
- namespaceSelector:
|
|
||||||
matchLabels:
|
|
||||||
kubernetes.io/metadata.name: kube-system
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: kube-dns
|
|
||||||
ports:
|
|
||||||
- port: '53'
|
- port: '53'
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
---
|
- port: '80'
|
||||||
|
protocol: TCP
|
||||||
|
- port: '443'
|
||||||
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
Reference in New Issue
Block a user