• 停止Choerodon
  • 启动Choerodon

    停止Choerodon

    本文执行的所有命令都是基于分步安装命令进行的操作,若你在执行安装命令时有修改 —name 参数,那么请对应修改以下命令的deployment name参数。
    • 命令格式为: kubectl scale deployment -n [namespace] —replicas=0 [deployment name]
    1. # 基础组件
    2. kubectl scale deployment -n c7n-system --replicas=0 chartmuseum-chartmuseum
    3. kubectl scale deployment -n c7n-system --replicas=0 minio
    4. kubectl scale deployment -n c7n-system --replicas=0 redis
    5. kubectl scale deployment -n c7n-system --replicas=0 mysql
    6. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-adminserver
    7. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-clair
    8. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-core
    9. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-jobservice
    10. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-registry
    11. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-portal
    12. kubectl scale deployment -n c7n-system --replicas=0 gitlab
    13. # 微服务开发框架
    14. kubectl scale deployment -n c7n-system --replicas=0 register-server
    15. kubectl scale deployment -n c7n-system --replicas=0 asgard-service
    16. kubectl scale deployment -n c7n-system --replicas=0 manager-service
    17. kubectl scale deployment -n c7n-system --replicas=0 notify-service
    18. kubectl scale deployment -n c7n-system --replicas=0 iam-service
    19. kubectl scale deployment -n c7n-system --replicas=0 api-gateway
    20. kubectl scale deployment -n c7n-system --replicas=0 oauth-server
    21. kubectl scale deployment -n c7n-system --replicas=0 file-service
    22. # 持续交付
    23. kubectl scale deployment -n c7n-system --replicas=0 devops-service
    24. kubectl scale deployment -n c7n-system --replicas=0 gitlab-service
    25. kubectl scale deployment -n c7n-system --replicas=0 workflow-service
    26. # 敏捷管理
    27. kubectl scale deployment -n c7n-system --replicas=0 agile-service
    28. kubectl scale deployment -n c7n-system --replicas=0 state-machine-service
    29. kubectl scale deployment -n c7n-system --replicas=0 issue-service
    30. kubectl scale deployment -n c7n-system --replicas=0 foundation-service
    31. # 测试管理
    32. kubectl scale deployment -n c7n-system --replicas=0 test-manager-service
    33. # 知识管理
    34. kubectl scale deployment -n c7n-system --replicas=0 knowledgebase-service
    35. # 总前端
    36. kubectl scale deployment -n c7n-system --replicas=0 choerodon-front

    启动Choerodon

    请一定按以下启动顺序执行,确认启动的服务启动成功后再启动下一个服务。
    1. # 基础组件
    2. kubectl scale deployment -n c7n-system --replicas=1 chartmuseum-chartmuseum
    3. kubectl scale deployment -n c7n-system --replicas=1 minio
    4. kubectl scale deployment -n c7n-system --replicas=1 redis
    5. kubectl scale deployment -n c7n-system --replicas=1 mysql
    6. kubectl scale deployment -n c7n-system --replicas=1 harbor-harbor-adminserver
    7. kubectl scale deployment -n c7n-system --replicas=1 harbor-harbor-clair
    8. kubectl scale deployment -n c7n-system --replicas=1 harbor-harbor-core
    9. kubectl scale deployment -n c7n-system --replicas=1 harbor-harbor-jobservice
    10. kubectl scale deployment -n c7n-system --replicas=1 harbor-harbor-registry
    11. kubectl scale deployment -n c7n-system --replicas=1 harbor-harbor-portal
    12. kubectl scale deployment -n c7n-system --replicas=1 gitlab
    13. # 微服务开发框架
    14. kubectl scale deployment -n c7n-system --replicas=1 register-server
    15. kubectl scale deployment -n c7n-system --replicas=1 asgard-service
    16. kubectl scale deployment -n c7n-system --replicas=1 manager-service
    17. kubectl scale deployment -n c7n-system --replicas=1 notify-service
    18. kubectl scale deployment -n c7n-system --replicas=1 iam-service
    19. kubectl scale deployment -n c7n-system --replicas=1 api-gateway
    20. kubectl scale deployment -n c7n-system --replicas=1 oauth-server
    21. kubectl scale deployment -n c7n-system --replicas=1 file-service
    22. # 持续交付
    23. kubectl scale deployment -n c7n-system --replicas=1 devops-service
    24. kubectl scale deployment -n c7n-system --replicas=1 gitlab-service
    25. kubectl scale deployment -n c7n-system --replicas=1 workflow-service
    26. # 敏捷管理
    27. kubectl scale deployment -n c7n-system --replicas=1 agile-service
    28. kubectl scale deployment -n c7n-system --replicas=1 state-machine-service
    29. kubectl scale deployment -n c7n-system --replicas=1 issue-service
    30. kubectl scale deployment -n c7n-system --replicas=1 foundation-service
    31. # 测试管理
    32. kubectl scale deployment -n c7n-system --replicas=1 test-manager-service
    33. # 知识管理
    34. kubectl scale deployment -n c7n-system --replicas=1 knowledgebase-service
    35. # 总前端
    36. kubectl scale deployment -n c7n-system --replicas=1 choerodon-front