08 Jun 2023 aap tips

2023-10-17 10:14:58 浏览数 (1)

  • 通过api检验hub的健康状态

代码语言:javascript复制
curl https://hub.test.com/api/galaxy/pulp/api/v3/status/
  • 通过api获取hub的role
代码语言:javascript复制
curl -H "Authorization: Bearer xxxxxx" https://hub.test.com/api/galaxy/pulp/api/v3/roles/
  • hub api文档
代码语言:javascript复制
https://docs.pulpproject.org/pulpcore/restapi.html
  • 查询hub端api
代码语言:javascript复制
curl https://hub.test.com/api/galaxy/pulp/api/v3/
  • aap 2.3包含的组件版本
代码语言:javascript复制
[controller v4.3](https://docs.ansible.com/automation-controller/4.3/)
hub v4.6
  • scale down aap
代码语言:javascript复制
kubectl scale deployments --replicas=0 automation-hub-api automation-hub-content automation-hub-redis automation-hub-web automation-hub-worker -n ansible-automation-platform
  • 检查url是否可以访问
代码语言:javascript复制
curl -Is https://controller.test.com/

LEo at 00:12

0 人点赞