4.4. 验证是否应用了 TuneD 配置集
验证应用到集群节点的 TuneD 配置集。
$ oc get profile.tuned.openshift.io -n openshift-cluster-node-tuning-operator
输出示例
NAME TUNED APPLIED DEGRADED AGE master-0 openshift-control-plane True False 6h33m master-1 openshift-control-plane True False 6h33m master-2 openshift-control-plane True False 6h33m worker-a openshift-node True False 6h28m worker-b openshift-node True False 6h28m
-
NAME
:配置集(Profile)对象的名称。每个节点有一个 Profile 对象,其名称相互匹配。 -
TUNED
:要应用的 TuneD 配置集的名称。 -
APPLIED
:如果 TuneD 守护进程应用了所需的配置集,则为True
。(True/False/Unknown
)。 -
DEGRADED
:如果在应用 TuneD 配置集时报告了任何错误则为True
(True/False/Unknown
)。 -
AGE
:创建 Profile 对象后经过的时间。
ClusterOperator/node-tuning
对象还包含有关 Operator 及其节点代理健康状况的有用信息。例如,ClusterOperator /node-tuning
状态消息报告 Operator 错误配置。
要获取 ClusterOperator/node-tuning
对象的状态信息,请运行以下命令:
$ oc get co/node-tuning -n openshift-cluster-node-tuning-operator
输出示例
NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE MESSAGE node-tuning 4.16.1 True False True 60m 1/5 Profiles with bootcmdline conflict
如果 ClusterOperator/node-tuning
或配置集对象的状态是 DEGRADED
,则 Operator 或操作对象日志中会提供额外的信息。