【已解决】rbd-repo 的artifactory系统 无法通过 http://管理节点 :8081 访问

1、首先logs -f rbd-repo 并且重启pod。发现日志的确是tomcat监听了 8081端口
2、get service 发现rbd-repo 的service
3、edit rbd-repo 以下为配置

# Please edit the object below. Lines beginning with a '#' will be ignored,

and an empty file will abort the edit. If an error occurs while saving this file will be

reopened with the relevant failures.

apiVersion: v1
kind: Service
metadata:
creationTimestamp: “2020-09-30T01:55:35Z”
labels:
belongTo: rainbond-operator
creator: Rainbond
name: rbd-repo
name: rbd-repo
namespace: rbd-system
ownerReferences:

  • apiVersion: rainbond.io/v1alpha1
    blockOwnerDeletion: true
    controller: true
    kind: RbdComponent
    name: rbd-repo
    uid: 1ce17f96-e986-478c-a952-1acd04040a55
    resourceVersion: “17833782”
    selfLink: /api/v1/namespaces/rbd-system/services/rbd-repo
    uid: 44e74e55-ffe4-461f-9bcb-1cac8b5db3ed
    spec:
    clusterIP: 10.68.87.191
    ports:
  • name: http
    port: 80
    protocol: TCP
    targetPort: 80
    selector:
    belongTo: rainbond-operator
    creator: Rainbond
    name: rbd-repo
    sessionAffinity: None
    type: ClusterIP
    status:
    loadBalancer: {}

发现是ClusterIP 改为nodePort 结果始终改了保存成功了 还会自动还原。无法公开rbd-repo的端口。

问:怎么通过http://管理节点:端口访问到rbd-repo (我要自定义JDK)

我参考的文档 https://www.rainbond.com/docs/advanced-scenarios/devops/how-to-select-jdk/

1.首先查询集群中 rbd-repo 组件的 ServiceIP

$  kubectl get svc rbd-repo -n rbd-system
NAME       TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)           AGE
rbd-repo   ClusterIP   172.21.12.87   <none>        80/TCP,8081/TCP   208d

2.在平台中添加第三方组件

组件地址为 rbd-repo 的 CLUSTER-IP:8081


在端口界面选用tcp或http协议,并打开对外端口

3.点击访问策略中推荐地址即可访问到artifactory,用户名及密码默认为 admin/password

这个svc 并没有开启8081端口
6666666666666666666666666

试试这个:
https://www.rainbond.com/docs/user-operations/component/rbd-repo/

谢谢 通过重新建service的方式 启用repo-web

已经解决