Skip to content

Commit

Permalink
add network policy yamls (#4745)
Browse files Browse the repository at this point in the history
* add network policy yamls

Signed-off-by: Shovan Maity <[email protected]>

* remove litmus-cluster-scope.yaml

Signed-off-by: Shovan Maity <[email protected]>

* rename litmus-namespaced-scope.yaml -> litmus-installation.yaml

Signed-off-by: Shovan Maity <[email protected]>

---------

Signed-off-by: Shovan Maity <[email protected]>
  • Loading branch information
shovanmaity committed Jul 8, 2024
1 parent 9f4fe25 commit a02767d
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,25 @@ spec:
cpu: "550m"
ephemeral-storage: "1Gi"
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: litmusportal-server
namespace: litmus
labels:
component: litmusportal-server
spec:
policyTypes:
- Ingress
podSelector:
matchLabels:
component: litmusportal-server
ingress:
- from:
- podSelector:
matchLabels:
component: litmusportal-frontend
---
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -362,6 +381,29 @@ spec:
cpu: "550m"
ephemeral-storage: "1Gi"
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: litmusportal-auth-server
namespace: litmus
labels:
component: litmusportal-auth-server
spec:
policyTypes:
- Ingress
podSelector:
matchLabels:
component: litmusportal-auth-server
ingress:
- from:
- podSelector:
matchLabels:
component: litmusportal-frontend
- from:
- podSelector:
matchLabels:
component: litmusportal-server
---
apiVersion: v1
kind: Service
metadata:
Expand Down
42 changes: 42 additions & 0 deletions chaoscenter/manifests/litmus-without-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,25 @@ spec:
- containerPort: 8001
imagePullPolicy: Always
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: litmusportal-server
namespace: litmus
labels:
component: litmusportal-server
spec:
policyTypes:
- Ingress
podSelector:
matchLabels:
component: litmusportal-server
ingress:
- from:
- podSelector:
matchLabels:
component: litmusportal-frontend
---
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -328,6 +347,29 @@ spec:
- containerPort: 3031
imagePullPolicy: Always
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: litmusportal-auth-server
namespace: litmus
labels:
component: litmusportal-auth-server
spec:
policyTypes:
- Ingress
podSelector:
matchLabels:
component: litmusportal-auth-server
ingress:
- from:
- podSelector:
matchLabels:
component: litmusportal-frontend
- from:
- podSelector:
matchLabels:
component: litmusportal-server
---
apiVersion: v1
kind: Service
metadata:
Expand Down

0 comments on commit a02767d

Please sign in to comment.