Skip to content

Commit e9bf9d6

Browse files
author
Jill Grant
authored
Merge pull request #288569 from msftadam/patch-32
Update get-started-with-cluster-registry.md
2 parents 6c69e7f + 5e01514 commit e9bf9d6

File tree

1 file changed

+88
-15
lines changed

1 file changed

+88
-15
lines changed

articles/operator-service-manager/get-started-with-cluster-registry.md

Lines changed: 88 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@ title: Get started with Azure Operator Service Manager cluster registry
33
description: Azure Operator Service Manager cluster registry provides a locally resilent edge registry service to host Nexus K8s container image artifacts.
44
author: msftadam
55
ms.author: adamdor
6-
ms.date: 09/06/2024
6+
ms.date: 10/31/2024
77
ms.topic: get-started
88
ms.service: azure-operator-service-manager
99
---
1010

1111
# Get started with cluster registry
12-
* Original Author: Tobias Weisserth
13-
* Original Publish Date: July 26, 2024
12+
* Created & First Published: July 26, 2024
13+
* Updated for HA: October 16, 2024
1414

1515
## Overview
16-
Improve resiliency for cloud native network functions with Azure Operator Service Manager cluster registry. This feature requires the following minimum environment:
17-
* AOSM ARM API Version: 2023-09-01
18-
* AOSM CNF Arc for Kubernetes Extension Build Number: 1.0.2711-7
16+
Improve resiliency for cloud native network functions with Azure Operator Service Manager (AOSM) cluster registry (CR). This feature requires the following minimum environment:
17+
* Minimum AOSM ARM API Version: 2023-09-01
18+
* First version, no high availability (HA) for Network Function (NF) kubernetes extension: 1.0.2711-7
19+
* First version, with HA for NF kubernetes extension: 2.0.2810-144
1920

2021
## Introduction
2122
Azure Operator Service Manager (AOSM) cluster registry (CR) enables a local copy of container images in the Nexus K8s cluster. When the containerized network function (CNF) is installed with cluster registry enabled, the container images are pulled from the remote AOSM artifact store and saved to a local registry. With cluster register, CNF access to container images survives loss of connectivity to the remote artifact store.
@@ -29,21 +30,93 @@ In the above scenarios, if there's a temporary issue with accessing the AOSM art
2930

3031
## How cluster registry works
3132
AOSM cluster registry is enabled using the Network Function Operator Arc K8s extension. The following CLI shows how cluster registry is enabled on a Nexus K8s cluster.
32-
```
33-
az k8s-extension create --name networkfunction-operator --cluster-name <CLUSTER_NAME> --resource-group <RESOURCE_GROUP_NAME> --cluster-type connectedClusters --extension-type Microsoft.Azure.HybridNetwork --scope cluster --release-namespace azurehybridnetwork --config Microsoft.CustomLocation.ServiceAccount=azurehybridnetwork-networkfunctionoperator --config global.networkfunctionextension.enableClusterRegistry=true --config global.networkfunctionextension.clusterRegistry.storageSize=100Gi --version 1.0.2711-7 --auto-upgrade-minor-version false --release-train stable
33+
```bash
34+
az k8s-extension create --cluster-name
35+
--cluster-type {connectedClusters}
36+
--extension-type {Microsoft.Azure.HybridNetwork}
37+
--name
38+
--resource-group
39+
--scope {cluster}
40+
--release-namespace {azurehybridnetwork}
41+
--release-train {preview, stable}
42+
--config Microsoft.CustomLocation.ServiceAccount=azurehybridnetwork-networkfunction-operator
43+
[--auto-upgrade {false, true}]
44+
[--config global.networkfunctionextension.enableClusterRegistry={false, true}]
45+
[--config global.networkfunctionextension.enableLocalRegistry={false, true}]
46+
[--config global.networkfunctionextension.enableEarlyLoading={false,true}]
47+
[--config global.networkfunctionextension.clusterRegistry.highAvailability.enabled={true, false}]
48+
[--config global.networkfunctionextension.clusterRegistry.autoScaling.enabled={true, false}]
49+
[--config global.networkfunctionextension.webhook.highAvailability.enabled={true, false}]
50+
[--config global.networkfunctionextension.webhook.autoScaling.enabled={true, false}]
51+
[--config global.networkfunctionextension.clusterRegistry.storageClassName=]
52+
[--config global.networkfunctionextension.clusterRegistry.storageSize=]
53+
[--config global.networkfunctionextension.webhook.pod.mutation.matchConditionExpression=]
54+
[--version]
3455
```
3556
When the cluster registry feature is enabled in the Network Function Operator Arc K8s extension, any container images deployed from AOSM artifact store are accessible locally in the Nexus K8s cluster. The user can choose the persistent storage size for the cluster registry.
3657

3758
> [!NOTE]
3859
> If the user doesn't provide any input, a default persistent volume of 100 GB is used.
3960
40-
## Frequently Asked Questions
61+
## High availability and resiliency considerations
62+
The AOSM NF extension relies uses a mutating webhook and edge registry to support key features.
63+
* Onboarding helm charts without requiring customization of image path.
64+
* A local cluster registry to accelerate pod operations and enable disconnected-moded support.
65+
These essential components need to be highly available and resilient.
66+
67+
### Summary of changes for HA
68+
With HA, cluster registry and webhook pods now support a replicaset with a minimum of three replicas and a maximum of five replicas. The replicaset key configuration is as follows:
69+
* Gradual rollout upgrade strategy is used.
70+
* PodDisruptionBudgets (PDB) are used for availability during voluntary disruptions.
71+
* Pod Anti-affinity is used to spread pods evenly across nodes.
72+
* Readiness probe are used to make sure pods are ready before serving traffic.
73+
* AOSM workload pods are assigned only to the system node pool.
74+
* Pods scale horizontally under CPU and memory load.
75+
76+
#### Replicas
77+
* A cluster running multiple copies, or replicas, of an application provides the first level of redundancy. Both cluster registry and webhook are defined as 'kind:deployment' with a minimum of three replicas.
78+
#### DeploymentStrategy
79+
* A rollingUpdate strategy is used to help achieve zero downtime upgrades and support gradual rollout of applications. Default maxUnavailable configuration allows only one pod to be taken down at a time, until enough pods are created to satisfying redundancy policy.
80+
#### Pod Disruption Budget
81+
* A policy distruption budget (PDB) protects pods from voluntary disruption and is deployed alongside Deployment, ReplicaSet, or StatefulSet objects. For AOSM operator pods, a PDB with minAvailable parameter of 2 is used.
82+
#### Pod anti-affinity
83+
* Pod anti-affinity controls distribution of application pods across multiple nodes in your cluster. With HA, AOSM pod anti-affinity using the following parameters:
84+
* A scheduling mode is used to define how strictly the rule is enforced.
85+
* requiredDuringSchedulingIgnoredDuringExecution(Hard): Pods must be scheduled in a way that satisfies the defined rule. If no topologies that meet the rule's requirements are available, the pod is not scheduled.
86+
* preferredDuringSchedulingIgnoredDuringExecution(Soft): This rule type expresses a preference for scheduling pods but doesn't enforce a strict requirement. If topologies that meet the preference criteria are available, Kubernetes schedules the pod. If no such topologies are available, the pod can still be scheduled on other nodes that do not meet the preference.
87+
* A Label Selector is used to target specific pods for which the affinity is applied.
88+
* A Topology Key is used to define the node needs.
89+
* Nexus node placement is spread evenly across zones by design, so spreading the pods across nodes also gives zonal redundancy.
90+
* AOSM operator pods use a soft anti-affinity with weight 100 and topology key based on node hostnames is used.
4191

42-
### Can I use AOSM cluster registry with a CNF application previously deployed?
43-
If there's a CNF application already deployed without cluster registry, the container images are not available automatically. The cluster registry must be enabled before deploying the network function with AOSM.
92+
#### Storage
93+
* Since AOSM edge registry has multiple replicas which are spread across nodes, the persistent volume must support ReadWriteMany (RWX) access mode. PVC “nexus-shared” volume is available on Nexus clusters and supports RWX access mode.
94+
95+
#### Monitoring via Readiness Probes
96+
* AOSM uses http readiness probes to know when a container is ready to start accepting traffic. A pod is considered ready when all containers are ready. When a Pod is not ready, it is removed from the service load balancers.
4497

45-
### Which Nexus K8s storage class is used?
46-
AOSM cluster registry feature uses nexus-volume storage class to store the container images in the Nexus Kubernetes cluster. By default, a 100-GB persistent volume is created if the user doesn't specify the size of the cluster registry.
98+
#### System node pool
99+
* All AOSM operator pods are assigned to the system node pool. This pool prevents misconfigured or rouge application pods from impacting system pods.
47100

48-
### Can I change the storage size after a deployment?
49-
Storage size can't be modified after the initial deployment. We recommend configuring the volume size by 3x to 4x of the starting size.
101+
#### Horizontal scaling
102+
* In Kubernetes, a HorizontalPodAutoscaler (HPA) automatically updates a workload resource with the aim of automatically scaling the workload to match demand. AOSM operator pods have the following HPA policy parameters configured;
103+
* A minimum replicas of three.
104+
* A maximum replicas of five.
105+
* A targetAverageUtilization for cpu and memory of 80%.
106+
107+
#### Resource limits
108+
* Resources limits are used to prevent a resource overload on the nodes where AOSM pods are running. AOSM uses two resource parameters to limit both CPU and memory consumption.
109+
* **Resource request** - The minimum amount that should be reserved for a pod. This value should be set to resource usage under normal load for your application.
110+
* **Resource limit** - The maximum amount that a pod should ever use, if usage reaches the limit it is terminated.
111+
All AOSM operator containers are configured with appropriate request, limit for CPU and memory.
112+
113+
#### Known HA Limitations
114+
* Nexus AKS (NAKS) clusters with single active node in system agent pool are not suitable for highly available. Nexus production topology must use at least three active nodes in system agent pool.
115+
* The nexus-shared storage class is a network file system (NFS) storage service. This NFS storage service is available per Cloud Service Network (CSN). Any Nexus Kubernetes cluster attached to the CSN can provision persistent volume from this shared storage pool. The storage pool is currently limited to a maximum size of 1TiB as of Network Cloud (NC) 3.10 where-as NC 3.12 has a 16-TiB option.
116+
* Pod Anti affinity only deals with the initial placement of pods, subsequent pod scaling, and repair, follows standard K8s scheduling logic.
117+
118+
## Frequently Asked Questions
119+
* Can I use AOSM cluster registry with a CNF application previously deployed?
120+
* If there's a CNF application already deployed without cluster registry, the container images are not available automatically. The cluster registry must be enabled before deploying the network function with AOSM.
121+
* Can I change the storage size after a deployment?
122+
* Storage size can't be modified after the initial deployment. We recommend configuring the volume size by 3x to 4x of the starting size.

0 commit comments

Comments
 (0)