Skip to content

Commit 9d3f85f

Browse files
committed
cluster/genesis - add ingress-dataplane to egress in getWSNetworkPolicy
1 parent 2928300 commit 9d3f85f

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

cluster/genesis/genesis/ws_init.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,33 @@ func (s *Genesis) getWSNetworkPolicy() *networkingv1.NetworkPolicy {
342342
},
343343

344344
{
345+
Ports: []networkingv1.NetworkPolicyPort{
346+
{
347+
Protocol: &tcpProtocol,
348+
Port: &intstr.IntOrString{
349+
IntVal: 8080,
350+
},
351+
},
352+
},
353+
To: []networkingv1.NetworkPolicyPeer{
354+
{
355+
PodSelector: &k8smetav1.LabelSelector{
356+
MatchLabels: map[string]string{
357+
"app": "octelium",
358+
"octelium.com/component": "ingress-dataplane",
359+
"octelium.com/component-type": "cluster",
360+
},
361+
},
362+
NamespaceSelector: &k8smetav1.LabelSelector{
363+
MatchLabels: map[string]string{
364+
"kubernetes.io/metadata.name": "octelium",
365+
},
366+
},
367+
},
368+
},
369+
},
345370

371+
{
346372
Ports: []networkingv1.NetworkPolicyPort{
347373
{
348374
Protocol: &tcpProtocol,

0 commit comments

Comments
 (0)