3.3. 查看集群功能
作为集群管理员,您可以使用 clusterversion
资源状态来查看功能。
先决条件
-
已安装 OpenShift CLI(
oc
)。
流程
要查看集群功能的状态,请运行以下命令:
$ oc get clusterversion version -o jsonpath='{.spec.capabilities}{"\n"}{.status.capabilities}{"\n"}'
输出示例
{"additionalEnabledCapabilities":["openshift-samples"],"baselineCapabilitySet":"None"} {"enabledCapabilities":["openshift-samples"],"knownCapabilities":["CSISnapshot","Console","Insights","Storage","baremetal","marketplace","openshift-samples"]}