API Reference¶
Packages¶
k8s.ovn.org/v1alpha1¶
Package v1alpha1 contains API Schema definitions for the network v1 API group
Resource Types¶
Bandwidth¶
Bandwidth controls the maximum of rate traffic that can be sent or received on the matching packets.
Appears in: - Rule
| Field | Description | Default | Validation |
|---|---|---|---|
rate integer |
rate The value of rate limit in kbps. Traffic over the limit will be dropped. |
Format: int64 Maximum: 4.294967295e+09 Minimum: 1 Optional: {} |
|
burst integer |
burst The value of burst rate limit in kilobits. This also needs rate to be specified. |
Format: int64 Maximum: 4.294967295e+09 Minimum: 1 Optional: {} |
CIDR¶
Underlying type: string
CIDR is an IPv4 or IPv6 network in CIDR notation, or a single IP address.
Validation: - MaxLength: 49
Appears in: - IPBlock
Classifier¶
Appears in: - Rule
| Field | Description | Default | Validation |
|---|---|---|---|
to Destination array |
MaxItems: 100 Optional: {} |
||
ports Port array |
Optional: {} |
Destination¶
Destination describes a peer to apply NetworkQoS configuration for the outgoing traffic. Only certain combinations of fields are allowed.
Appears in: - Classifier
| Field | Description | Default | Validation |
|---|---|---|---|
podSelector LabelSelector |
podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If namespaceSelector is also set, then the NetworkQoS as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the NetworkQoS's own namespace. |
Optional: {} |
|
namespaceSelector LabelSelector |
namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If podSelector is also set, then the NetworkQoS as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector. |
Optional: {} |
|
ipBlock IPBlock |
ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. |
Optional: {} |
IPBlock¶
IPBlock selects destination addresses by CIDR, with optional exclusions.
Appears in: - Destination
| Field | Description | Default | Validation |
|---|---|---|---|
cidr CIDR |
cidr is a CIDR, for example "192.168.1.0/24" or "2001:db8::/64", or a single IP address. |
MaxLength: 49 Required: {} |
|
except CIDR array |
except lists CIDRs or single IP addresses that are excluded from cidr, for example "192.168.1.0/28" or "2001:db8::/96". |
MaxItems: 25 MaxLength: 49 Optional: {} |
NetworkQoS¶
NetworkQoS is a CRD that allows the user to define a DSCP marking and metering for pods ingress/egress traffic on its namespace to specified CIDRs, protocol and port. Traffic belong these pods will be checked against each Rule in the namespace's NetworkQoS, and if there is a match the traffic is marked with relevant DSCP value and enforcing specified policing parameters.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
k8s.ovn.org/v1alpha1 |
||
kind string |
NetworkQoS |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec Spec |
|||
status Status |
Port¶
Port specifies destination protocol and port on which NetworkQoS rule is applied
Appears in: - Classifier
| Field | Description | Default | Validation |
|---|---|---|---|
protocol string |
protocol (TCP, UDP, SCTP) that the traffic must match. | Enum: [TCP UDP SCTP] Optional: {} |
|
port integer |
port that the traffic must match | Maximum: 65535 Minimum: 1 Optional: {} |
Rule¶
Appears in: - Spec
| Field | Description | Default | Validation |
|---|---|---|---|
dscp integer |
dscp marking value for matching pods' traffic. | Maximum: 63 Minimum: 0 |
|
classifier Classifier |
classifier The classifier on which packets should match to apply the NetworkQoS Rule. This field is optional, and in case it is not set the rule is applied to all egress traffic regardless of the destination. |
Optional: {} |
|
bandwidth Bandwidth |
Optional: {} |
Spec¶
Spec defines the desired state of NetworkQoS
Appears in: - NetworkQoS
| Field | Description | Default | Validation |
|---|---|---|---|
networkSelectors NetworkSelectors |
networkSelector selects the networks on which the pod IPs need to be added to the source address set. NetworkQoS controller currently supports NetworkAttachmentDefinitions type only. |
Optional: {} |
|
podSelector LabelSelector |
podSelector applies the NetworkQoS rule only to the pods in the namespace whose label matches this definition. This field is optional, and in case it is not set results in the rule being applied to all pods in the namespace. |
Optional: {} |
|
priority integer |
priority is a value from 0 to 100 and represents the NetworkQoS' priority. QoSes with numerically higher priority takes precedence over those with lower. |
Maximum: 100 Minimum: 0 |
|
egress Rule array |
egress a collection of Egress NetworkQoS rule objects. A total of 20 rules will be allowed in each NetworkQoS instance. The relative precedence of egress rules within a single NetworkQos object (all of which share the priority) will be determined by the order in which the rule is written. Thus, a rule that appears first in the list of egress rules would take the lower precedence. |
MaxItems: 20 |
Status¶
Status defines the observed state of NetworkQoS
Appears in: - NetworkQoS
| Field | Description | Default | Validation |
|---|---|---|---|
status string |
A concise indication of whether the NetworkQoS resource is applied with success. | Optional: {} |
|
conditions Condition array |
An array of condition objects indicating details about status of NetworkQoS object. | Optional: {} |