Advertisement
Guest User

resize multiple controllers

a guest
May 25th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. [vagrant@openshiftdev sample-app]$ osc resize rc/database-app-1 rc/database-rc-1 rc/ruby-hello-world-1 --replicas=7
  2. resized
  3.  
  4. [vagrant@openshiftdev sample-app]$ osc get rc
  5. CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
  6. database-app-1 ruby-helloworld-database mysql name=database 7
  7. database-rc-1 ruby-helloworld-database mysql name=database 7
  8. frontend-app-1 ruby-helloworld openshift/ruby-hello-world name=frontend 3
  9. frontend-rc-1 ruby-helloworld openshift/ruby-hello-world name=frontend 3
  10. ruby-hello-world-1 ruby-hello-world library/ruby-hello-world:latest deployment=ruby-hello-world-1,deploymentconfig=ruby-hello-world 7
  11.  
  12. [vagrant@openshiftdev sample-app]$ time osc resize rc/database-app-1 rc/database-rc-1 rc/ruby-hello-world-1 --current-replicas=7 --replicas=0
  13. resized
  14.  
  15. real 0m9.309s
  16. user 0m0.177s
  17. sys 0m0.352s
  18.  
  19. [vagrant@openshiftdev sample-app]$ osc get rc
  20. CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
  21. database-app-1 ruby-helloworld-database mysql name=database 0
  22. database-rc-1 ruby-helloworld-database mysql name=database 0
  23. frontend-app-1 ruby-helloworld openshift/ruby-hello-world name=frontend 3
  24. frontend-rc-1 ruby-helloworld openshift/ruby-hello-world name=frontend 3
  25. ruby-hello-world-1 ruby-hello-world library/ruby-hello-world:latest deployment=ruby-hello-world-1,deploymentconfig=ruby-hello-world 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement