Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring QoS

In Kube-OVN, the ingress and egress bandwidths (in Mbit/s) of a pod can be specified by the ovn.kubernetes.io/ingress_rate and ovn.kubernetes.io/egress_rate fields respectively in the annotations section in the YAML configuration file on the pod. You can configure the QoS when creating a pod or dynamically adjust the QoS by modifying the two fields when the pod is running.

  • Configuring the QoS when creating a pod
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    apiVersion: v1
    kind: Pod
    metadata:
      name: qos
      namespace: product
      annotations:
        ovn.kubernetes.io/ingress_rate: "3"
        ovn.kubernetes.io/egress_rate: "1"
    spec:
      containers:
      - name: qos
        image: nginx:alpine
    
  • Dynamically adjusting the QoS
    1
    kubectl annotate --overwrite pod nginx-74d5899f46-d7qkn ovn.kubernetes.io/ingress_rate=3