Skip to content

Commit

Permalink
add default deny test to ingress-and-egress-blocked
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Bertschy <[email protected]>
  • Loading branch information
matthyx committed Nov 4, 2024
1 parent 152bc44 commit d699377
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-all
namespace: my-ns
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Pod
metadata:
name: test
namespace: my-ns
spec:
containers:
- args:
- server
env:
- name: BASE_HREF
value: /argo/
image: test:latest
name: test
imagePullPolicy: Never
- name : test2
image : test

0 comments on commit d699377

Please sign in to comment.