Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [vagrant@openshiftdev sample-app]$ osc resize rc/database-app-1 rc/database-rc-1 rc/ruby-hello-world-1 --replicas=7
- resized
- [vagrant@openshiftdev sample-app]$ osc get rc
- CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
- database-app-1 ruby-helloworld-database mysql name=database 7
- database-rc-1 ruby-helloworld-database mysql name=database 7
- frontend-app-1 ruby-helloworld openshift/ruby-hello-world name=frontend 3
- frontend-rc-1 ruby-helloworld openshift/ruby-hello-world name=frontend 3
- ruby-hello-world-1 ruby-hello-world library/ruby-hello-world:latest deployment=ruby-hello-world-1,deploymentconfig=ruby-hello-world 7
- [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
- resized
- real 0m9.309s
- user 0m0.177s
- sys 0m0.352s
- [vagrant@openshiftdev sample-app]$ osc get rc
- CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
- database-app-1 ruby-helloworld-database mysql name=database 0
- database-rc-1 ruby-helloworld-database mysql name=database 0
- frontend-app-1 ruby-helloworld openshift/ruby-hello-world name=frontend 3
- frontend-rc-1 ruby-helloworld openshift/ruby-hello-world name=frontend 3
- 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