訪問 openshift web 控制臺(tái)
openshift web console 在集群部署中會(huì)默認(rèn)安裝。會(huì)提供一個(gè)友好的 web 管理頁面,滿足絕大部分場景的業(yè)務(wù)發(fā)布與維護(hù)。及一些平臺(tái)配置參數(shù)維護(hù)。
配置域名解析
首先,找到訪問的域名,和router 所在節(jié)點(diǎn)
[root@bastion ~]# oc get route -A |grep console-
openshift-console console console-openshift-console.apps.ocp4.example.com console https reencrypt/Redirect None
[root@bastion ~]# oc get route -A |grep oauth
openshift-authentication oauth-openshift oauth-openshift.apps.ocp4.example.com oauth-openshift 6443 passthrough/Redirect None
[root@bastion ~]# oc get pod -owide -A|grep route
openshift-ingress router-default-679488d97-pt5xh 1/1 Running 0 31h 192.168.2.22 master0.ocp4.example.com <none> <none>
把兩個(gè)域名 console-openshift-console.apps.ocp4.example.com oauth-openshift.apps.ocp4.example.com 解析到 192.168.2.22
寫入hosts,或者配置到dnsserver。 如果有多個(gè)router,且配置了負(fù)載,則解析到負(fù)載ip。
訪問 web 頁面
通過瀏覽器訪問 https://console-openshift-console.apps.ocp4.example.com
初始密碼在部署機(jī)。
用戶名: kubeadm
密碼在文件中
[root@bastion ~]# cat /opt/install/auth/kubeadmin-password
JzPpM-hVUJn-o2PD7-RKtoe
console-overview.png