0

我已经在 RedHat OpenShift 上部署了 WebSphere 传统,但我无法获得管理控制台。我可以看到服务器正在 Pod 内运行。附上我使用的 yaml 文件和生成的 pod 日志。请帮忙。谢谢!

Pod 和服务的 YAML 文件 -

apiVersion: v1
kind: Pod
metadata:
    name: was-traditional
    labels:
        app: websphere
spec:
    containers:
    - name: was-container
      image: ibmcom/websphere-traditional:8.5.5.17

------------------------------------

apiVersion : v1
kind : Service
metadata :
  name : was-service
spec :
  selector :
    app : websphere
  type : NodePort
  ports :
    - protocol : TCP
      port : 9043
      targetPort : 9043
      nodePort : 31085

WAS Pod 日志 -

{"type":"was_message","host":"was-traditional","ibm_cellName":"DefaultCell01","ibm_nodeName":"DefaultNode01","ibm_serverName":"server1","ibm_sequence":"1611228360189_0000000000113","message":"SRVE0255E: A WebGroup\/Virtual Host to handle \/ibm\/console\/ has not been defined.","ibm_datetime":"2021-01-21T11:26:00.189+0000","ibm_messageId":"SRVE0255E","ibm_methodName":"handleRequest","ibm_className":"com.ibm.ws.webcontainer.internal.WebContainer","ibm_threadId":"0000006c","module":"com.ibm.ws.webcontainer.internal.WebContainer","loglevel":"SEVERE"}
4

1 回答 1

0

您可以oc port-forward <pod> 9043:9043在需要查看管理控制台的工作站上,然后通过 localhost:9043 访问它。由于虚拟主机在传统 websphere 中的工作方式,它不适用于备用端口。

于 2021-01-21T13:31:23.533 回答