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 # ... configurationInstance Properties
Section titled “Instance Properties”Available properties:
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
annotations | object / null | No | - | Annotations to set on the item. |
controller | string | No | - | Controller this NetworkPolicy should target. |
enabled | boolean | No | true | Set to false to disable the NetworkPolicy. |
extraSelectorLabels | object | No | - | Additional match labels to add to the pod selector. These… |
forceRename | string | No | - | Override the default resource name. Mutually exclusive wi… |
labels | object / null | No | - | Labels to set on the item. |
podSelector | any | No | - | Custom podSelector for the NetworkPolicy. Takes precedenc… |
policyTypes | array | Yes | - | Policy types for the NetworkPolicy. |
prefix | string | No | “ | Prefix to prepend to the resource name. Mutually exclusiv… |
rules | object | Yes | - | Ingress and egress rules for the NetworkPolicy. See https… |
suffix | string | No | - | Suffix to append to the resource name. Defaults to the re… |
Property Details
Section titled “Property Details”extraSelectorLabels
Section titled “extraSelectorLabels”Additional match labels to add to the pod selector. These are merged with labels derived from the controller identifier.
forceRename
Section titled “forceRename”Override the default resource name. Mutually exclusive with prefix and suffix.
podSelector
Section titled “podSelector”Custom podSelector for the NetworkPolicy. Takes precedence over targeting a controller via the controller identifier.
prefix
Section titled “prefix”Prefix to prepend to the resource name. Mutually exclusive with forceRename.
suffix
Section titled “suffix”Suffix to append to the resource name. Defaults to the resource identifier if there are multiple items, otherwise empty. Mutually exclusive with forceRename.