|
15 | 15 | Common commands: |
16 | 16 |
|
17 | 17 | create create a new container formation |
18 | | - scale scale backends, proxies or container types |
| 18 | + scale scale container types (web=2, worker=1) |
19 | 19 | rotate rotate in fresh backends, proxies or containers |
20 | 20 | balance rebalance and converge the container formation |
21 | 21 | destroy destroy a container formation |
22 | 22 |
|
23 | 23 | Use `deis help [subcommand]` to learn about these subcommands: |
24 | 24 |
|
25 | 25 | formations manage container formations |
26 | | - containers manage the containers running on backends |
27 | | - backends manage the backend nodes hosting containers |
28 | | - proxies manage the proxy nodes routing to containers |
| 26 | + layers manage layers of nodes |
29 | 27 | nodes manage nodes of all types |
| 28 | + containers manage the containers running on backends |
30 | 29 |
|
31 | 30 | flavors create and manage node flavors |
32 | 31 | providers create and manage cloud provider credentials |
@@ -355,19 +354,6 @@ def auth_logout(self, args): |
355 | 354 | self._settings.save() |
356 | 355 | print('Logged out') |
357 | 356 |
|
358 | | - def backends_list(self, args): |
359 | | - formation = args.get('--formation') |
360 | | - if not formation: |
361 | | - formation = self._session.formation |
362 | | - response = self._dispatch('get','/formations/{}/backends'.format(formation)) |
363 | | - if response.status_code == requests.codes.ok: # @UndefinedVariable |
364 | | - print('=== {0}'.format(formation)) |
365 | | - data = response.json() |
366 | | - for item in data['results']: |
367 | | - print('{0[uuid]:<23} {0[created]}'.format(item)) |
368 | | - else: |
369 | | - print('Error!', response.text) |
370 | | - |
371 | 357 | def builds_create(self, args): |
372 | 358 | formation = args.get('--formation') |
373 | 359 | if not formation: |
@@ -715,7 +701,7 @@ def layers_create(self, args): |
715 | 701 | if not formation: |
716 | 702 | formation = self._session.formation |
717 | 703 | body = {'id': args['<id>'], 'flavor': args['<flavor>'], 'run_list': args['--run_list']} |
718 | | - for opt in ('--environment', '--initial_attributes', |
| 704 | + for opt in ('--environment', '--initial_attributes', |
719 | 705 | '--ssh_username', '--ssh_private_key', '--ssh_public_key'): |
720 | 706 | o = args.get(opt) |
721 | 707 | if o: |
@@ -882,20 +868,6 @@ def providers_info(self, args): |
882 | 868 | else: |
883 | 869 | print('Error!', response.text) |
884 | 870 |
|
885 | | - def proxies_list(self, args): |
886 | | - """List proxies for this formation.""" |
887 | | - formation = args.get('--formation') |
888 | | - if not formation: |
889 | | - formation = self._session.formation |
890 | | - response = self._dispatch('get', '/api/formations/{}/proxies'.format(formation)) |
891 | | - if response.status_code == requests.codes.ok: # @UndefinedVariable |
892 | | - print('=== {0}'.format(formation)) |
893 | | - data = response.json() |
894 | | - for item in data['results']: |
895 | | - print('{0[uuid]} {0[created]}'.format(item)) |
896 | | - else: |
897 | | - print('Error!', response.text) |
898 | | - |
899 | 871 |
|
900 | 872 | def main(): |
901 | 873 | """ |
|
0 commit comments