networkpolicy

by heywood8

Helm chartv0.1.1App 1.0.0Verified publisher

Helm Chart representing a single Network Policy Kubernetes API object

About this chart

Network Policy Chart

[](https://artifacthub.io/packages/search?repo=heywood8-helm-charts

Description

The networkpolicy chart deploys a single Kubernetes Network Policy object.

Installation

helm repo add heywood8 https://heywood8.github.io/helm-charts/

helm install mypolicy heywood8/networkpolicy

Configuration

The following table lists the configurable parameters of the networkpolicy chart and their default values.

ParameterDescriptionDefault
nameOverrideoverride name of the chart component.Release.Name
apiVersionapi version of k8s object"v1"
annotationsannotations in yaml map format to be added to the objectnull
labelslabels to add to Network Policy objectnull
podSelector.matchLabelsMap of key/value pairs to be used to select pods with matching labels to apply Network Policy tonull
egressRulesarray of egress rules to apply to matching pods.[]
ingressRulesarray of ingress rules to apply to matching pods.[]
ingressRules[].selectorsarray of network policy ingress traffic selector statements[]
ingressRules[].portsarray of port specifications to apply the ingress rule on[]
egressRules[].selectorsarray of network policy egress traffic selector statements[]
egressRules[].portsarray of port specifications to apply the egress rule on[]

Example Configuration

For some examples of values used to configure this chart, see the ci/example values for this chart

Deploy networkpolicy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has networkpolicy on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnetworkpolicy is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply