Skip to content

Commit

Permalink
Merge pull request #638 from kubescape/np
Browse files Browse the repository at this point in the history
add support for default deny networkpolicy
  • Loading branch information
matthyx authored Nov 21, 2024
2 parents 03d793d + af9c235 commit 8fb7714
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 8fb7714

Please sign in to comment.