Skip to content

Add NetworkPolicy component #34

@AlexisNeveu

Description

@AlexisNeveu

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:

Image

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

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions