Skip to content

Commit 8a78036

Browse files
Merge pull request #292144 from msftadam/patch-48
Update manage-network-function-operator.md
2 parents f97cb4b + 60250fa commit 8a78036

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

articles/operator-service-manager/manage-network-function-operator.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,45 @@ The referenced matchCondition implies that the pods getting accepted in kube-sys
174174
## Update network function extension
175175
The Azure CLI command 'az k8s-extension update' is executed to update the NFO extension.
176176
177+
```bash
178+
az k8s-extension update --resource-group
179+
--cluster-name
180+
--cluster-type {connectedClusters}
181+
--extension-type {Microsoft.Azure.HybridNetwork}
182+
--name
183+
--release-namespace {azurehybridnetwork}
184+
--release-train {preview, stable}
185+
--config Microsoft.CustomLocation.ServiceAccount=azurehybridnetwork-networkfunction-operator
186+
[--version] {version-target}
187+
[--config global.networkfunctionextension.enableClusterRegistry={false, true}]
188+
[--config global.networkfunctionextension.enableLocalRegistry={false, true}]
189+
[--config global.networkfunctionextension.enableEarlyLoading={false,true}]
190+
[--config global.networkfunctionextension.clusterRegistry.highAvailability.enabled={true, false}]
191+
[--config global.networkfunctionextension.clusterRegistry.autoScaling.enabled={true, false}]
192+
[--config global.networkfunctionextension.webhook.highAvailability.enabled={true, false}]
193+
[--config global.networkfunctionextension.webhook.autoScaling.enabled={true, false}]
194+
[--config global.networkfunctionextension.clusterRegistry.storageClassName=]
195+
[--config global.networkfunctionextension.clusterRegistry.storageSize=]
196+
[--config global.networkfunctionextension.webhook.pod.mutation.matchConditionExpression=]
197+
[--config global.networkfunctionextension.clusterRegistry.clusterRegistryGCCadence=]
198+
[--config global.networkfunctionextension.clusterRegistry.clusterRegistryGCThreshold=]
199+
```
200+
201+
177202
## Delete network function extension
178203
The Azure CLI command 'az k8s-extension delete' is executed to delete the NFO extension.
179204

205+
```bash
206+
az k8s-extension delete --resource-group
207+
--cluster-name
208+
--cluster-type {connectedClusters}
209+
--extension-type {Microsoft.Azure.HybridNetwork}
210+
--name
211+
--release-namespace {azurehybridnetwork}
212+
--release-train {preview, stable}
213+
--config Microsoft.CustomLocation.ServiceAccount=azurehybridnetwork-networkfunction-operator
214+
```
215+
180216
## Examples
181217
Create a network function extension with auto upgrade.
182218
```bash
@@ -207,3 +243,13 @@ Create a network function extension with side loading feature enabled.
207243
```bash
208244
az k8s-extension create --resource-group myresourcegroup --cluster-name mycluster --name myextension --cluster-type connectedClusters --extension-type Microsoft.Azure.HybridNetwork --scope cluster --config Microsoft.CustomLocation.ServiceAccount=azurehybridnetwork-networkfunction-operator --release-namespace azurehybridnetwork --config global.networkfunctionextension.enableLocalRegistry=true
209245
```
246+
247+
Update a network function extension to enable cluster registry.
248+
```bash
249+
az k8s-extension update --resource-group naks-1-rg --cluster-name naks-1 --cluster-type connectedClusters --name networkfunction-operator --extension-type Microsoft.Azure.HybridNetwork --release-namespace azurehybridnetwork --config networkFunctionExtension.EnableManagedInClusterEdgeRegistry=true –-config networkFunctionExtension.EdgeRegistrySizeInGB=1024
250+
```
251+
252+
Update a network function extension to reach a new target version.
253+
```bash
254+
az k8s-extension update --resource-group naks-1-rg --cluster-name naks-1 --cluster-type connectedClusters --name networkfunction-operator --extension-type Microsoft.Azure.HybridNetwork --release-namespace azurehybridnetwork --version X.X.XXXX-YYY
255+
```

0 commit comments

Comments
 (0)