Skip to content

networkpolicies

networkPolicy objects to be generated by the chart. Additional networkPolicies can be added by adding a dictionary key similar to the ‘main’ networkPolicy.

object

Keys are identifiers for networkpolicies instances.

networkpolicies:
main:
enabled: true
# ... configuration
secondary:
enabled: true
# ... configuration
networkpolicies:
ciliumClusterwide:
type: ciliumClusterwide
nodeSelector:
matchLabels:
kubernetes.io/os: linux
ingress:
- fromEntities:
- cluster

CiliumNetworkPolicy implementation to render.

PropertyTypeRequiredDefaultDescription
annotationsobject / nullNo-Annotations to set on the item. Keys and values support H…
controllerstringNo-Controller this CiliumNetworkPolicy should target. Mutual…
controllersarrayNo-Controllers this CiliumNetworkPolicy should target. Each …
descriptionstringNo-Human-readable description of the policy.
egressarrayNo-Egress allow rules. At most one peer selector may be set…
egressDenyarrayNo-Egress deny rules. At most one peer selector may be set. …
enableDefaultDenyobjectNo-Configure whether the selected endpoints enter default-de…
enabledbooleanNotrueSet to false to disable the CiliumNetworkPolicy.
endpointSelectorobjectNo-Custom endpointSelector for the CiliumNetworkPolicy. Mutu…
extraSelectorLabelsobjectNo-Additional match labels to add to the endpoint selector. …
forceRenamestringNo-Override the default resource name. Mutually exclusive wi…
ingressarrayYes-Ingress allow rules. At most one peer selector may be set…
ingressDenyarrayNo-Ingress deny rules. At most one peer selector may be set…
labelsobject / nullNo-Labels to set on the item. Keys and values support Helm t…
logstringNo-Free-form value included in Hubble flows matching this po…
nodeSelectorobjectNo-Node selector for a CiliumClusterwideNetworkPolicy.
prefixstringNo“Prefix to prepend to the resource name. Mutually exclusiv…
suffixstringNo-Suffix to append to the resource name. Defaults to the re…
Property details

Annotations to set on the item. Keys and values support Helm templating.

Controller this CiliumNetworkPolicy should target. Mutually exclusive with controllers and endpointSelector.

Controllers this CiliumNetworkPolicy should target. Each entry can be an exact controller identifier or a regular expression. Mutually exclusive with controller and endpointSelector.

Egress allow rules. At most one peer selector may be set. toPorts may be combined with a peer selector; icmps may not.

Egress deny rules. At most one peer selector may be set. toPorts may be combined with a peer selector; icmps may not.

Configure whether the selected endpoints enter default-deny mode for ingress and egress traffic.

Custom endpointSelector for the CiliumNetworkPolicy. Mutually exclusive with controller and controllers.

Additional match labels to add to the endpoint selector. These are merged with labels derived from the controller selection.

Override the default resource name. Mutually exclusive with prefix and suffix.

Ingress allow rules. At most one peer selector may be set. toPorts may be combined with a peer selector; icmps may not.

Ingress deny rules. At most one peer selector may be set. toPorts may be combined with a peer selector; icmps may not.

Labels to set on the item. Keys and values support Helm templating.

Free-form value included in Hubble flows matching this policy.

Prefix to prepend to the resource name. Mutually exclusive with forceRename.

Suffix to append to the resource name. Defaults to the resource identifier if there are multiple items, otherwise empty. Mutually exclusive with forceRename.

Common properties:

PropertyTypeRequiredDefaultDescription
annotationsobject / nullNo-Annotations to set on the item. Keys and values support H…
controllerstringNo-Controller this NetworkPolicy should target. Mutually exc…
controllersarrayNo-Controllers this NetworkPolicy should target. Each entry …
enabledbooleanNotrueSet to false to disable the NetworkPolicy.
extraSelectorLabelsobjectNo-Additional match labels to add to the pod selector. These…
forceRenamestringNo-Override the default resource name. Mutually exclusive wi…
labelsobject / nullNo-Labels to set on the item. Keys and values support Helm t…
podSelectoranyNo-Custom podSelector for the NetworkPolicy. Mutually exclus…
policyTypesarrayYes-Policy types for the NetworkPolicy.
prefixstringNo“Prefix to prepend to the resource name. Mutually exclusiv…
rulesobjectYes-Ingress and egress rules for the NetworkPolicy. See https…
suffixstringNo-Suffix to append to the resource name. Defaults to the re…
typestringNo-Resource implementation to render. Set type to native, ci…

Annotations to set on the item. Keys and values support Helm templating.

Controller this NetworkPolicy should target. Mutually exclusive with controllers and podSelector.

Controllers this NetworkPolicy should target. Each entry can be an exact controller identifier or a regular expression. Mutually exclusive with controller and podSelector.

Additional match labels to add to the pod selector. These are merged with labels derived from the controller selection.

Override the default resource name. Mutually exclusive with prefix and suffix.

Labels to set on the item. Keys and values support Helm templating.

Custom podSelector for the NetworkPolicy. Mutually exclusive with controller and controllers.

Prefix to prepend to the resource name. Mutually exclusive with forceRename.

Suffix to append to the resource name. Defaults to the resource identifier if there are multiple items, otherwise empty. Mutually exclusive with forceRename.

Resource implementation to render. Set type to native, cilium, or ciliumClusterwide.

Allowed values: native, cilium, ciliumClusterwide