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.
controllerstringNo-Controller this CiliumNetworkPolicy should target.
descriptionstringNo-Human-readable description of the policy.
egressarrayNo-Cilium egress rules. See https://docs.cilium.io/en/stable…
egressDenyarrayNo-Cilium egress deny rules. Deny rules take precedence over…
enableDefaultDenyobjectNo-Configure whether the selected endpoints enter default-de…
enabledbooleanNotrueSet to false to disable the CiliumNetworkPolicy.
endpointSelectorobjectNo-Custom endpointSelector for the CiliumNetworkPolicy. Take…
extraSelectorLabelsobjectNo-Additional match labels to add to the endpoint selector. …
forceRenamestringNo-Override the default resource name. Mutually exclusive wi…
ingressarrayYes-Cilium ingress rules. See https://docs.cilium.io/en/stabl…
ingressDenyarrayNo-Cilium ingress deny rules. Deny rules take precedence ove…
labelsobject / nullNo-Labels to set on the item.
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…

Common properties:

PropertyTypeRequiredDefaultDescription
annotationsobject / nullNo-Annotations to set on the item.
controllerstringNo-Controller this NetworkPolicy should target.
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.
podSelectoranyNo-Custom podSelector for the NetworkPolicy. Takes precedenc…
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…

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

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

Custom podSelector for the NetworkPolicy. Takes precedence over targeting a controller via the controller identifier.

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