×

OpenShift Container Platform Web控制台是一个可通过Web浏览器访问的用户界面。开发人员可以使用Web控制台可视化、浏览和管理项目的內容。

先决条件

理解和访问Web控制台

Web控制台作为Pod在控制平面节点上运行。运行Web控制台所需的静态资源由Pod提供。

使用openshift-install create cluster命令安装OpenShift Container Platform后,您可以在安装程序的CLI输出中找到已安装集群的Web控制台URL和登录凭据。例如:

示例输出
INFO Install complete!
INFO Run 'export KUBECONFIG=<your working directory>/auth/kubeconfig' to manage the cluster with 'oc', the OpenShift CLI.
INFO The cluster is ready when 'oc login -u kubeadmin -p <provided>' succeeds (wait a few minutes).
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.demo1.openshift4-beta-abcorp.com
INFO Login to the console with user: kubeadmin, password: <provided>

使用这些详细信息登录并访问Web控制台。

对于您未安装的现有集群,您可以使用oc whoami --show-console查看Web控制台URL。

dir参数指定assets目录,该目录存储清单文件、ISO映像和auth目录。auth目录存储kubeadmin-passwordkubeconfig文件。作为kubeadmin用户,您可以使用kubeconfig文件访问集群,设置如下:export KUBECONFIG=<install_directory>/auth/kubeconfigkubeconfig特定于生成的ISO映像,因此,如果设置了kubeconfig并且oc命令失败,则系统可能没有使用生成的ISO映像启动。为了进行调试,在引导过程中,您可以使用kubeadmin-password文件的内容以core用户身份登录到控制台。