**示例1:实现QoS为Guaranteed的Pod** ​ **qos-pod.yaml** ```` apiVersion: v1 kind: Pod metadata: name: qos-demo namespace: qos-example spec: containers: - name: qos-demo-ctr image: nginx resources: limits: memory: "200Mi" cpu: "700m" requests: memory: "200Mi" cpu: "700m" ```` **示例2:实现QoS为Burstable的Pod** ​ **qos-pod-2.yaml** ``` apiVersion: v1 kind: Pod metadata: name: qos-demo-2 namespace: qos-example spec: containers: - name: qos-demo-2-ctr image: nginx resources: limits: memory: "200Mi" requests: memory: "100Mi" ``` **示例3:实现QoS为BestEffort的Pod** **qos-pod-3.yaml** ``` apiVersion: v1 kind: Pod metadata: name: qos-demo-3 namespace: qos-example spec: containers: - name: qos-demo-3-ctr image: nginx ```