kubectl-apply.sh 1.0 KB

12345678910111213141516171819202122232425
  1. # create namespace
  2. kubectl create namespace sre
  3. # dev-env
  4. kubectl apply -f service-mysql-for-apollo-dev-env.yaml --record && \
  5. kubectl apply -f service-apollo-config-server-dev.yaml --record && \
  6. kubectl apply -f service-apollo-admin-server-dev.yaml --record
  7. # fat-env(test-alpha-env)
  8. kubectl apply -f service-mysql-for-apollo-test-alpha-env.yaml --record && \
  9. kubectl apply -f service-apollo-config-server-test-alpha.yaml --record && \
  10. kubectl apply -f service-apollo-admin-server-test-alpha.yaml --record
  11. # uat-env(test-beta-env)
  12. kubectl apply -f service-mysql-for-apollo-test-beta-env.yaml --record && \
  13. kubectl apply -f service-apollo-config-server-test-beta.yaml --record && \
  14. kubectl apply -f service-apollo-admin-server-test-beta.yaml --record
  15. # prod-env
  16. kubectl apply -f service-mysql-for-apollo-prod-env.yaml --record && \
  17. kubectl apply -f service-apollo-config-server-prod.yaml --record && \
  18. kubectl apply -f service-apollo-admin-server-prod.yaml --record
  19. # portal
  20. kubectl apply -f service-apollo-portal-server.yaml --record