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-nexus/quickstarts-kubernetes-cluster-deployment-cli.md
+18-15Lines changed: 18 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,15 +45,14 @@ Before you run the commands, you need to set several variables to define the con
45
45
| SERVICE_CIDR | The network range for the Kubernetes services in the cluster, in CIDR notation. |
46
46
| DNS_SERVICE_IP | The IP address for the Kubernetes DNS service. |
47
47
48
-
49
48
Once you've defined these variables, you can run the Azure CLI command to create the cluster. Add the ```--debug``` flag at the end to provide more detailed output for troubleshooting purposes.
50
49
51
50
To define these variables, use the following set commands and replace the example values with your preferred values. You can also use the default values for some of the variables, as shown in the following example:
52
51
53
52
```bash
54
53
RESOURCE_GROUP="myResourceGroup"
55
-
LOCATION="$(az group show --name $RESOURCE_GROUP --query location | tr -d '\"')"
56
-
SUBSCRIPTION_ID="$(az account show -o tsv --query id)"
54
+
SUBSCRIPTION_ID="<Azure subscription ID>"
55
+
LOCATION="$(az group show --name $RESOURCE_GROUP --query location --subscription $SUBSCRIPTION_ID -o tsv)"
> It is essential that you replace the placeholders for CUSTOM_LOCATION, CSN_ARM_ID, CNI_ARM_ID, and AAD_ADMIN_GROUP_OBJECT_ID with your actual values before running these commands.
76
76
77
77
After defining these variables, you can create the Kubernetes cluster by executing the following Azure CLI command:
The cluster created in the previous step has a single node pool. Let's add a second agent pool using the ```az networkcloud kubernetescluster agentpool create``` command. The following example creates an agent pool named ```myNexusAKSCluster-nodepool-2```:
114
115
115
116
You can also use the default values for some of the variables, as shown in the following example:
0 commit comments