Skip to content

Commit

Permalink
Create network-policy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayShivanagol authored Nov 7, 2023
1 parent 62748cd commit 1582ba3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions frontend/k8s/network-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: backend
spec:
ingress:
- ports:
- port: 8000
protocol: TCP
podSelector:
matchLabels:
app: backend
policyTypes:
- Ingress

0 comments on commit 1582ba3

Please sign in to comment.