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/commands/k8s.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ This API allows you to manage Kubernetes Kapsule and Kosmos clusters.
38
38
-[Delete a Pool in a Cluster](#delete-a-pool-in-a-cluster)
39
39
-[Get a Pool in a Cluster](#get-a-pool-in-a-cluster)
40
40
-[List Pools in a Cluster](#list-pools-in-a-cluster)
41
+
-[Migrate specific pools or all pools of a cluster to new images.](#migrate-specific-pools-or-all-pools-of-a-cluster-to-new-images.)
41
42
-[Update a Pool in a Cluster](#update-a-pool-in-a-cluster)
42
43
-[Upgrade a Pool in a Cluster](#upgrade-a-pool-in-a-cluster)
43
44
-[Wait for a pool to reach a stable state](#wait-for-a-pool-to-reach-a-stable-state)
@@ -1121,6 +1122,42 @@ scw k8s pool list cluster-id=11111111-1111-1111-1111-111111111111 order-by=creat
1121
1122
1122
1123
1123
1124
1125
+
### Migrate specific pools or all pools of a cluster to new images.
1126
+
1127
+
If no pool is specified, all pools of the cluster will be migrated to new images.
1128
+
1129
+
**Usage:**
1130
+
1131
+
```
1132
+
scw k8s pool migrate-to-new-images [arg=value ...]
1133
+
```
1134
+
1135
+
1136
+
**Args:**
1137
+
1138
+
| Name || Description |
1139
+
|------|---|-------------|
1140
+
| cluster-id | Required ||
1141
+
| pool-ids.{index} |||
1142
+
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`| Region to target. If none is passed will use default region from the config |
1143
+
1144
+
1145
+
**Examples:**
1146
+
1147
+
1148
+
Migrate all pools of a cluster to new images
1149
+
```
1150
+
scw k8s pool migrate-to-new-images cluster-id=11111111-1111-1111-1111-111111111111
1151
+
```
1152
+
1153
+
Migrate a specific pool of a cluster to new images
1154
+
```
1155
+
scw k8s pool migrate-to-new-images cluster-id=11111111-1111-1111-1111-111111111111 pools.0=22222222-2222-2222-2222-222222222222
1156
+
```
1157
+
1158
+
1159
+
1160
+
1124
1161
### Update a Pool in a Cluster
1125
1162
1126
1163
Update the attributes of a specific pool, such as its desired size, autoscaling settings, and tags. To upgrade a pool, you will need to use the dedicated endpoint.
0 commit comments