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

Available 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.
prefixstringNoPrefix 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…

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.