-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description
As a User
,
I want To have NetworkPolicy components in the Kub plugin
so that I can use them in the draw view and cover the most frequent cases
.
A NetworkPolicy in Kubernetes is a resource used to control the traffic flow to and from a pod. It allows you to define rules for what kind of traffic is allowed, based on labels, namespaces, and IP addresses. Here is a basic NetworkPolicy component as it should be created when drag and dropping one from the draw view:
Here is an example of the smallest valid NetworkPolicy that selects all pods in the default namespace but doesn't explicitly define any rules (effectively blocking all ingress and egress traffic), all other fields are optional:
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: deny-all
spec:
podSelector: {}
Metadata
Metadata
Assignees
Labels
Type
Projects
Status