You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-conventions.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ These are verbs which change the fundamental type of data returned (watch return
189
189
190
190
Two additional verbs `redirect` and `proxy` provide access to cluster resources as described in [accessing-the-cluster.md](accessing-the-cluster.md).
191
191
192
-
When resources wish to expose alternative actions that are closely coupled to a single resource, they should do so using new sub-resources. An example is allowing automated processes to update the "status" field of a Pod. The `/pods` endpoint only allows updates to "metadata" and "spec", since those reflect end-user intent. An automated process should be able to modify status for users to see by sending an updated Pod kind to the server to the "/pods/<name>/status" endpoint - the alternate endpoint allows different rules to be applied to the update, and access to be appropriately restricted. Likewise, some actions like "stop" or "resize" are best represented as REST sub-resources that are POSTed to. The POST action may require a simple kind to be provided if the action requires parameters, or function without a request body.
192
+
When resources wish to expose alternative actions that are closely coupled to a single resource, they should do so using new sub-resources. An example is allowing automated processes to update the "status" field of a Pod. The `/pods` endpoint only allows updates to "metadata" and "spec", since those reflect end-user intent. An automated process should be able to modify status for users to see by sending an updated Pod kind to the server to the "/pods/<name>/status" endpoint - the alternate endpoint allows different rules to be applied to the update, and access to be appropriately restricted. Likewise, some actions like "stop" or "scale" are best represented as REST sub-resources that are POSTed to. The POST action may require a simple kind to be provided if the action requires parameters, or function without a request body.
Two single-core minions are certainly not enough for a production system of today, and, as you can see, there is one _unassigned_ pod. Let's resize the cluster by adding a couple of bigger nodes.
91
+
Two single-core minions are certainly not enough for a production system of today, and, as you can see, there is one _unassigned_ pod. Let's scale the cluster by adding a couple of bigger nodes.
92
92
93
93
You will need to open another terminal window on your machine and go to the same working directory (e.g. `~/Workspace/weave-demos/coreos-azure`).
94
94
95
95
First, lets set the size of new VMs:
96
96
```
97
97
export AZ_VM_SIZE=Large
98
98
```
99
-
Now, run resize script with state file of the previous deployment and number of minions to add:
99
+
Now, run scale script with state file of the previous deployment and number of minions to add:
--current-replicas=-1: Precondition for current size. Requires that the current size of the replication controller match this value in order to resize.
33
-
-h, --help=false: help for resize
32
+
--current-replicas=-1: Precondition for current size. Requires that the current size of the replication controller match this value in order to scale.
33
+
-h, --help=false: help for scale
34
34
--replicas=-1: The new desired number of replicas. Required.
35
-
--resource-version="": Precondition for resource version. Requires that the current resource version match this value in order to resize.
35
+
--resource-version="": Precondition for resource version. Requires that the current resource version match this value in order to scale.
0 commit comments