This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.5.2. 安装 Vertical Pod Autoscaler Operator
您可以使用 OpenShift Container Platform web 控制台安装 Vertical Pod Autoscaler Operator(VPA)。
流程
-
在 OpenShift Container Platform Web 控制台中,点击 Operators
OperatorHub。 - 从可用 Operator 列表中选择 VerticalPodAutoscaler,点 Install。
-
在 Install Operator 页面中,确保选择了 Operator 推荐的命名空间 选项。这会在
openshift-vertical-pod-autoscaler
命名空间中创建 Operator。如果这个命名空间还没有存在,会自动创建它。 - 点击 Install。
列出 VPA Operator 组件来验证安装:
-
导航到 Workloads
Pods。 -
从下拉菜单中选择
openshift-vertical-pod-autoscaler
项目,并验证是否运行了 4 个 pod。 -
进入 Workloads
Deployments 以验证运行了四个部署。
-
导航到 Workloads
可选。使用以下命令在 OpenShift Container Platform CLI 中验证安装:
oc get all -n openshift-vertical-pod-autoscaler
$ oc get all -n openshift-vertical-pod-autoscaler
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出显示 4 个 pod 和 4 个部署:
输出示例
Copy to Clipboard Copied! Toggle word wrap Toggle overflow