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: articles/operator-service-manager/get-started-with-cluster-registry.md
+88-15Lines changed: 88 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,20 @@ title: Get started with Azure Operator Service Manager cluster registry
3
3
description: Azure Operator Service Manager cluster registry provides a locally resilent edge registry service to host Nexus K8s container image artifacts.
4
4
author: msftadam
5
5
ms.author: adamdor
6
-
ms.date: 09/06/2024
6
+
ms.date: 10/31/2024
7
7
ms.topic: get-started
8
8
ms.service: azure-operator-service-manager
9
9
---
10
10
11
11
# 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
14
14
15
15
## 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
19
20
20
21
## Introduction
21
22
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
29
30
30
31
## How cluster registry works
31
32
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.
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.
36
57
37
58
> [!NOTE]
38
59
> If the user doesn't provide any input, a default persistent volume of 100 GB is used.
39
60
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.
41
91
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.
44
97
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.
47
100
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