Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

节点管理API开发 #13

Closed
3 tasks
Tracked by #36
bjwswang opened this issue Feb 16, 2023 · 3 comments · Fixed by #38
Closed
3 tasks
Tracked by #36

节点管理API开发 #13

bjwswang opened this issue Feb 16, 2023 · 3 comments · Fixed by #38
Assignees
Labels
enhancement New feature or request high High Priority
Milestone

Comments

@bjwswang
Copy link
Member

bjwswang commented Feb 16, 2023

  • 组织下节点列表查询
  • 组织下节点过滤
  • 组织下新建节点
@bjwswang bjwswang added this to the v0.1.1 milestone Feb 16, 2023
@bjwswang bjwswang added the enhancement New feature or request label Feb 16, 2023
@bjwswang
Copy link
Member Author

bjwswang commented Feb 20, 2023

1. 节点列表查询

NOTE: 选定某个组织 {org_name}

kubectl get ibppeers -n {org_name}

2. 节点过滤

Note: 基于 ibppeer.name进行过滤

3. 新建节点

NOTE: 选定某个组织 {org_name}

基于:

修改参数的流程详解:

  1. 获取组织对应的CA connecition profile,并解析获取所需内容
kubectl get cm -n {org_name} {org_name}-connection-profile

所需内容:

  • tls.cacert : jq -r '.tls.cert'
  • cahost : 1. jq -r 'endpoints.api' 2. 获取host
  • caport : jq -r 'endpoints.api' 2. 获取端口号
  1. 填充字段
  • ibppeer.metadata.name: 设置为节点名称,规则{org_name}-peer-{random_string} (required)

  • ibppeer.metadata.namespace: 设置为当前的组织名 {org_name} (required)

  • ibppeer.spec.domain : 设置为BaaS ingressDomain 参考 (required)

  • ibppeer.spec.ingress.class : 设置为默认ingress (optional)

  • ibppeer.spec.storage.class : 设置为默认storage class (optional)

  • ibppeer.spec.secret.enrollment.component.enrollid : 设置为新节点的节点名称 (required)

  • ibppeer.spec.secret.enrollment.component.enrolluser : 设置为当前登录用户的 用户名 (required)

  • ibppeer.spec.secret.enrollment.component.enrolltoken : 设置为当前登录用户的 token (required)

  • ibppeer.spec.secret.enrollment.component.cahost : 设置为第一步获取的 cahost (required)

  • ibppeer.spec.secret.enrollment.component.caport : 设置为第一步获取的 caport (required)

  • ibppeer.spec.secret.enrollment.component.catls.cacert : 设置为第一步获取的 tls.cacert (required)

  • ibppeer.spec.secret.enrollment.tls.enrollid : 设置为新节点的节点名称 (required)

  • ibppeer.spec.secret.enrollment.tls.enrolluser : 设置为当前登录用户的 用户名 (required)

  • ibppeer.spec.secret.enrollment.tls.enrolltoken : 设置为当前登录用户的 token (required)

  • ibppeer.spec.secret.enrollment.tls.cahost : 设置为第一步获取的 cahost (required)

  • ibppeer.spec.secret.enrollment.tls.caport : 设置为第一步获取的 caport (required)

  • ibppeer.spec.secret.enrollment.tls.catls.cacert : 设置为第一步获取的 tls.cacert (required)

  • ibppeer.spec.images.peerTag: 设置为 2.4.7-external

Note: 节点部署时镜像需要参考默认的镜像仓库调整,参考 bestchains/bc-console#18

4. 扩充磁盘

5. 调整配置

@dayuy
Copy link
Contributor

dayuy commented Feb 24, 2023

2.24 补充字段:

  1. 组织详情:「加入的通道」
  2. 节点管理:「加入的网络」、「加入的通道」

@dayuy
Copy link
Contributor

dayuy commented Mar 2, 2023

  1. 新增节点数量 createIbppeer($org: String!, $count: Float)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high High Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants