@@ -92,10 +92,10 @@ Update the quickstart ARM template or Bicep parameter file with the required key
92
92
"controlPlaneSshKeys" : {
93
93
"value" : [
94
94
{
95
- "keyData" : " ssh-rsa AAAAA ...."
95
+ "keyData" : " ssh-rsa CCCCC ...."
96
96
},
97
97
{
98
- "keyData" : " ssh-rsa BBBBB ...."
98
+ "keyData" : " ssh-rsa DDDDD ...."
99
99
}
100
100
]
101
101
}
@@ -107,15 +107,17 @@ Update the quickstart ARM template or Bicep parameter file with the required key
107
107
"agentPoolSshKeys" : {
108
108
"value" : [
109
109
{
110
- "keyData" : " ssh-rsa AAAAA ...."
110
+ "keyData" : " ssh-rsa EEEEE ...."
111
111
},
112
112
{
113
- "keyData" : " ssh-rsa BBBBB ...."
113
+ "keyData" : " ssh-rsa FFFFF ...."
114
114
}
115
115
]
116
116
}
117
117
```
118
118
119
+ Apply the ARM template or Bicep to create the cluster.
120
+
119
121
---
120
122
121
123
## Manage Operator Nexus Kubernetes cluster node SSH keys
@@ -126,7 +128,7 @@ To update the SSH keys, you can apply the same Bicep/ARM configuration used duri
126
128
127
129
### Limitations
128
130
129
- 1 . You can't remove all SSH keys from the cluster nodes. You can only update them with new keys.
131
+ 1 . You can't remove SSH keys from the cluster nodes. You can only update them with new keys.
130
132
2 . If you try to update the cluster wide key with an empty array, the operation succeeds, but the existing keys remain unchanged.
131
133
3 . If you try to update the agent pool keys or control plane with an empty array, the operation succeeds, and the cluster wide keys are used instead.
132
134
4 . If you try to update the keys for a cluster that was created without any keys, the new key is added, but you can't remove it.
@@ -147,16 +149,16 @@ Use the following command to update the cluster wide SSH keys, which are used fo
147
149
148
150
#### Azure CLI to update cluster wide SSH keys
149
151
150
- 1 . Set the ` NEW_CLUSTER_WIDE_KEY ` variable with the new SSH key.
152
+ 1 . Set the ` SSH_PUBLIC_KEY ` variable with the new SSH key.
151
153
152
154
``` bash
153
- NEW_CLUSTER_WIDE_KEY =" ssh-rsa CCCCC...."
155
+ SSH_PUBLIC_KEY =" ssh-rsa CCCCC...."
154
156
```
155
157
156
158
2 . Use the following command to update the cluster wide SSH keys.
157
159
158
160
``` azurecli
159
- az networkcloud kubernetescluster update --name "$CLUSTER_NAME" --resource-group "$RESOURCE_GROUP" --subscription "$SUBSCRIPTION_ID" --ssh-key-values "$CLUSER_WIDE_KEY "
161
+ az networkcloud kubernetescluster update --name "$CLUSTER_NAME" --resource-group "$RESOURCE_GROUP" --subscription "$SUBSCRIPTION_ID" --ssh-key-values "$SSH_PUBLIC_KEY "
160
162
```
161
163
162
164
#### Azure Resource Manager (ARM) and Bicep to update cluster wide SSH keys
@@ -259,16 +261,16 @@ Use the following command to update the SSH keys for the control plane.
259
261
260
262
#### Azure CLI to update control plane SSH keys
261
263
262
- 1 . Set the ` CONTROL_PLANE_KEY ` variable with the new SSH key.
264
+ 1 . Set the ` CONTROL_PLANE_SSH_PUBLIC_KEY ` variable with the new SSH key.
263
265
264
266
``` bash
265
- CONTROL_PLANE_KEY =" ssh-rsa EEEEE...."
267
+ CONTROL_PLANE_SSH_PUBLIC_KEY =" ssh-rsa EEEEE...."
266
268
```
267
269
268
270
2 . Use the following command to update the control plane SSH keys.
269
271
270
272
``` azurecli
271
- az networkcloud kubernetescluster update --name "$CLUSTER_NAME" --resource-group "$RESOURCE_GROUP" --subscription "$SUBSCRIPTION_ID" --control-plane-node-configuration ssh-key-values="['$CONTROL_PLANE_KEY ']"
273
+ az networkcloud kubernetescluster update --name "$CLUSTER_NAME" --resource-group "$RESOURCE_GROUP" --subscription "$SUBSCRIPTION_ID" --control-plane-node-configuration ssh-key-values="['$CONTROL_PLANE_SSH_PUBLIC_KEY ']"
272
274
```
273
275
274
276
#### Azure ARM template and Bicep to update control plane SSH keys
0 commit comments