停止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 c7n-mysql
    4. kubectl scale deployment -n c7n-system --replicas=0 c7n-redis
    5. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-core
    6. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-jobservice
    7. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-portal
    8. kubectl scale deployment -n c7n-system --replicas=0 harbor-harbor-registry
    9. kubectl scale deployment -n c7n-system --replicas=0 sonarqube-postgresql
    10. kubectl scale deployment -n c7n-system --replicas=0 sonarqube-sonarqube
    11. kubectl scale deployment -n c7n-system --replicas=0 sonatype-nexus
    12. kubectl scale statefulset -n c7n-system --replicas=0 minio
    13. kubectl scale statefulset -n c7n-system --replicas=0 harbor-harbor-database
    14. kubectl scale statefulset -n c7n-system --replicas=0 harbor-harbor-redis
    15. kubectl scale statefulset -n c7n-system --replicas=0 gitlab-gitlab-core
    16. kubectl scale statefulset -n c7n-system --replicas=0 gitlab-gitlab-database
    17. kubectl scale statefulset -n c7n-system --replicas=0 gitlab-gitlab-redis
    18. # 微服务开发框架
    19. kubectl scale deployment -n c7n-system --replicas=0 choerodon-register
    20. kubectl scale deployment -n c7n-system --replicas=0 choerodon-platform
    21. kubectl scale deployment -n c7n-system --replicas=0 choerodon-admin
    22. kubectl scale deployment -n c7n-system --replicas=0 choerodon-iam
    23. kubectl scale deployment -n c7n-system --replicas=0 choerodon-asgard
    24. kubectl scale deployment -n c7n-system --replicas=0 choerodon-gateway
    25. kubectl scale deployment -n c7n-system --replicas=0 choerodon-message
    26. kubectl scale deployment -n c7n-system --replicas=0 choerodon-monitor
    27. kubectl scale deployment -n c7n-system --replicas=0 choerodon-oauth
    28. kubectl scale deployment -n c7n-system --replicas=0 choerodon-swagger
    29. kubectl scale deployment -n c7n-system --replicas=0 choerodon-file
    30. kubectl scale deployment -n c7n-system --replicas=0 choerodon-monitor
    31. # 持续交付
    32. kubectl scale deployment -n c7n-system --replicas=0 devops-service
    33. kubectl scale deployment -n c7n-system --replicas=0 gitlab-service
    34. kubectl scale deployment -n c7n-system --replicas=0 workflow-service
    35. # 敏捷管理
    36. kubectl scale deployment -n c7n-system --replicas=0 agile-service
    37. # 测试管理
    38. kubectl scale deployment -n c7n-system --replicas=0 test-manager-service
    39. # 知识管理
    40. kubectl scale deployment -n c7n-system --replicas=0 elasticsearch-kb
    41. kubectl scale deployment -n c7n-system --replicas=0 knowledgebase-service
    42. # 制品库
    43. kubectl scale deployment -n c7n-system --replicas=0 code-repo-service
    44. kubectl scale deployment -n c7n-system --replicas=0 prod-repo-service
    45. # 总前端
    46. kubectl scale deployment -n c7n-system --replicas=0 choerodon-front
    47. kubectl scale deployment -n c7n-system --replicas=0 choerodon-front-hzero

启动Choerodon

请一定按以下启动顺序执行,确认启动的服务启动成功后再启动下一个服务。

  1. # 基础组件
  2. kubectl scale deployment -n c7n-system --replicas=1 chartmuseum-chartmuseum
  3. kubectl scale statefulset -n c7n-system --replicas=4 minio
  4. kubectl scale deployment -n c7n-system --replicas=1 c7n-redis
  5. kubectl scale deployment -n c7n-system --replicas=1 c7n-mysql
  6. kubectl scale statefulset -n c7n-system --replicas=1 harbor-harbor-redis
  7. kubectl scale statefulset -n c7n-system --replicas=1 harbor-harbor-database
  8. kubectl scale deployment -n c7n-system --replicas=1 harbor-harbor-portal
  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-core
  12. kubectl scale statefulset -n c7n-system --replicas=1 gitlab-gitlab-database
  13. kubectl scale statefulset -n c7n-system --replicas=1 gitlab-gitlab-redis
  14. kubectl scale statefulset -n c7n-system --replicas=1 gitlab-gitlab-core
  15. kubectl scale deployment -n c7n-system --replicas=1 sonarqube-postgresql
  16. kubectl scale deployment -n c7n-system --replicas=1 sonarqube-sonarqube
  17. kubectl scale deployment -n c7n-system --replicas=1 sonatype-nexus
  18. # 微服务开发框架
  19. kubectl scale deployment -n c7n-system --replicas=1 choerodon-register
  20. kubectl scale deployment -n c7n-system --replicas=1 choerodon-platform
  21. kubectl scale deployment -n c7n-system --replicas=1 choerodon-admin
  22. kubectl scale deployment -n c7n-system --replicas=1 choerodon-asgard
  23. kubectl scale deployment -n c7n-system --replicas=1 choerodon-iam
  24. kubectl scale deployment -n c7n-system --replicas=1 choerodon-gateway
  25. kubectl scale deployment -n c7n-system --replicas=1 choerodon-oauth
  26. kubectl scale deployment -n c7n-system --replicas=1 choerodon-message
  27. kubectl scale deployment -n c7n-system --replicas=1 choerodon-monitor
  28. kubectl scale deployment -n c7n-system --replicas=1 choerodon-swagger
  29. kubectl scale deployment -n c7n-system --replicas=1 choerodon-file
  30. kubectl scale deployment -n c7n-system --replicas=1 choerodon-monitor
  31. # 持续交付
  32. kubectl scale deployment -n c7n-system --replicas=1 devops-service
  33. kubectl scale deployment -n c7n-system --replicas=1 gitlab-service
  34. kubectl scale deployment -n c7n-system --replicas=1 workflow-service
  35. # 敏捷管理
  36. kubectl scale deployment -n c7n-system --replicas=1 agile-service
  37. # 测试管理
  38. kubectl scale deployment -n c7n-system --replicas=1 test-manager-service
  39. # 知识管理
  40. kubectl scale deployment -n c7n-system --replicas=1 elasticsearch-kb
  41. kubectl scale deployment -n c7n-system --replicas=1 knowledgebase-service
  42. # 总前端
  43. kubectl scale deployment -n c7n-system --replicas=1 choerodon-front
  44. kubectl scale deployment -n c7n-system --replicas=1 choerodon-front-hzero