kubernetes v1.31

NetworkPolicyEgressRule.ports.port

IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.

1 fields
NetworkPolicyEgressRule.ports.port fields and descriptions
Field / TypeDescription
NetworkPolicyEgressRule.ports.port
integer | string

IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.

  • format: int-or-string