codex-storage / cs-codex-dist-tests

Distributed System Tests for Nim-Codex
4 stars 4 forks source link

Fix/check network policies #14

Closed veaceslavdoina closed 1 year ago

veaceslavdoina commented 1 year ago

This PR close #12

Proposed changes are based on Network isolation during tests execution #11

Network policies was tested in Kubernetes and they works as expected and looks like the following

k describe networkpolicy isolate-policy -n ct-00010
Name:         isolate-policy
Namespace:    ct-00010
Created on:   2023-05-30 20:53:27 +0300 EEST
Labels:       <none>
Annotations:  <none>
Spec:
  PodSelector:     <none> (Allowing the specific traffic to all pods in this namespace)
  Allowing ingress traffic:
    To Port: <any> (traffic allowed to all ports)
    From:
      PodSelector: <none>
  Allowing egress traffic:
    To Port: <any> (traffic allowed to all ports)
    To:
      PodSelector: <none>
    ----------
    To Port: 53/UDP
    To:
      NamespaceSelector: kubernetes.io/metadata.name=kube-system
    To:
      PodSelector: k8s-app=kube-dns
    ----------
    To Port: 80/TCP
    To Port: 443/TCP
    To:
      IPBlock:
        CIDR: 0.0.0.0/0
        Except:
  Policy Types: Ingress, Egress

Also, as we have Docker auto-builds for nim-codex now we can use them for tests as well.