Skip to content

Commit 165cbe9

Browse files
committed
addressed comment
1 parent 17c678f commit 165cbe9

File tree

5 files changed

+24
-25
lines changed

5 files changed

+24
-25
lines changed

articles/operator-nexus/includes/kubernetes-cluster/cluster-connect-ps.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
author: rashirg
33
ms.author: rajeshwarig
4-
ms.date: 09/28/2023
4+
ms.date: 10/03/2023
55
ms.topic: include
66
ms.service: azure-operator-nexus
77
---
@@ -11,26 +11,23 @@ ms.service: azure-operator-nexus
1111
1212
To access your cluster, you need to set up the cluster connect `kubeconfig`. After logging into Azure PowerShell with the relevant Azure AD entity, you can obtain the `kubeconfig` necessary to communicate with the cluster from anywhere, even outside the firewall that surrounds it.
1313

14-
1. Set `CLUSTER_NAME`, `RESOURCE_GROUP` and `SUBSCRIPTION_ID` variables.
15-
```azurepowershell
16-
$CLUSTER_NAME="myNexusK8sCluster"
17-
$RESOURCE_GROUP="myResourceGroup"
18-
$LOCATION
19-
```
14+
1. Set CLUSTER_NAME, RESOURCE_GROUP, LOCATION and SUBSCRIPTION_ID variables.
2015

21-
2. Set the environment variables needed for Azure PowerShell to use the outbound proxy server:
2216
```azurepowershell
23-
$Env:HTTP_PROXY = "<proxy-server-ip-address>:<port>"
24-
$Env:HTTPS_PROXY = "<proxy-server-ip-address>:<port>"
25-
$Env:NO_PROXY = "<cluster-apiserver-ip-address>:<port>"
17+
$CLUSTER_NAME="myNexusK8sCluster"
18+
$LOCATION="<ClusterAzureRegion>"
19+
$MANAGED_RESOURCE_GROUP=(Get-AzNetworkCloudKubernetesCluster -KubernetesClusterName $CLUSTER_NAME `
20+
-SubscriptionId <mySubscription> `
21+
-ResourceGroupName myResourceGroup `
22+
| Select-Object -Property ManagedResourceGroupConfigurationName)
2623
```
27-
28-
3. The following command starts a connectedk8s proxy that allows you to connect to the Kubernetes API server for the specified Nexus Kubernetes cluster.
24+
25+
2. Run the following command to connect to the cluster.
2926
```azurecpowershell
30-
New-AzConnectedKubernetes -ClusterName $CLUSTER_NAME -ResourceGroupName $RESOURCE_GROUP -Location $LOCATION -Proxy 'https://<proxy-server-ip-address>:<port>'
27+
New-AzConnectedKubernetes -ClusterName $CLUSTER_NAME -ResourceGroupName $MANAGED_RESOURCE_GROUP -Location $LOCATION'
3128
```
3229
33-
4. Use `kubectl` to send requests to the cluster:
30+
2. Use `kubectl` to send requests to the cluster:
3431
3532
```console
3633
kubectl get pods -A

articles/operator-nexus/includes/kubernetes-cluster/quickstart-prereq-ps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.custom: devx-track-azurecpowershell
1616
* If you are running PowerShell locally, install the Az PowerShell module and connect to your Azure account using the [Connect-AzAccount](/powershell/module/az.accounts/Connect-AzAccount) cmdlet. For more information about installing the Az PowerShell module, see [Install Azure PowerShell][install-azure-powershell].
1717

1818
* If you have multiple Azure subscriptions, select the appropriate subscription ID in which the resources should be billed using the
19-
[Set-AzContext](/powershell/module/az.accounts/set-azcontext) cmdlet.
19+
[Set-AzContext](/powershell/module/az.accounts/set-azcontext) cmdlet. On setting the subscription, one need not pass the 'SubscriptionID' each time executing the PowerShell command.
2020

2121
* Refer the VM SKU table in the [reference section](../../reference-nexus-kubernetes-cluster-sku.md) for the list of supported VM SKUs.
2222

articles/operator-nexus/includes/kubernetes-cluster/quickstart-review-deployment-ps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ To view the details of the ```myNexusK8sCluster``` cluster in the ```myResourceG
1212

1313
```azurepowershell-interactive
1414
Get-AzNetworkCloudKubernetesCluster -KubernetesClusterName myNexusK8sCluster `
15-
-SubscriptionId mySubscription `
16-
-ResourceGroupName myResourceGroup
15+
-ResourceGroupName myResourceGroup `
16+
-SubscriptionId <mySubscription>
1717
```
1818

1919
Additionally, to get a list of agent pool names associated with the ```myNexusK8sCluster``` cluster in the ```myResourceGroup``` resource group, you can use the following Azure PowerShell command.
2020

2121
```azurepowershell-interactive
2222
Get-AzNetworkCloudAgentPool -KubernetesClusterName myNexusK8sCluster `
2323
-ResourceGroupName myResourceGroup `
24-
-SubscriptionId mySubscription
24+
-SubscriptionId <mySubscription>
2525
```

articles/operator-nexus/includes/kubernetes-cluster/quickstart-review-nodepool-ps.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
author: rashirg
33
ms.author: rajeshwarig
4-
ms.date: 09/27/2023
4+
ms.date: 10/07/2023
55
ms.topic: include
66
ms.service: azure-operator-nexus
77
---
@@ -12,7 +12,9 @@ ms.service: azure-operator-nexus
1212
The following output example resembles successful creation of the agent pools.
1313

1414
```azurepowershell
15-
Get-AzNetworkCloudAgentPool -KubernetesClusterName myNexusK8sCluster -SubscriptionId mySubscription -ResourceGroupName myResourceGroup
15+
Get-AzNetworkCloudAgentPool -KubernetesClusterName myNexusK8sCluster `
16+
-ResourceGroupName myResourceGroup `
17+
-SubscriptionId <mySubscription>
1618
1719
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy
1820
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------

articles/operator-nexus/quickstarts-kubernetes-cluster-deployment-ps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ $DNS_SERVICE_IP="10.96.0.10"
6969
# AgentPoolConfiguration parameters
7070
$INITIAL_AGENT_POOL_COUNT="1"
7171
$MODE="System"
72-
$INITIAL_AGENT_POOL_NAME="agenpool1"
73-
$INITIAL_AGENT_POOL_VM_SIZE="NC_G2_v1"
72+
$INITIAL_AGENT_POOL_NAME="agentpool1"
73+
$INITIAL_AGENT_POOL_VM_SIZE="NC_P10_56_v1"
7474
7575
# NAKS Cluster Parameters
7676
$CLUSTER_NAME="myNexusK8sCluster"
@@ -81,7 +81,7 @@ $K8S_VERSION="1.24.9"
8181
$AAD_ADMIN_GROUP_OBJECT_ID="3d4c8620-ac8c-4bd6-9a92-f2b75923ef9f"
8282
$ADMIN_USERNAME="azureuser"
8383
$CONTROL_PLANE_COUNT="1"
84-
$CONTROL_PLANE_VM_SIZE="NC_G2_v1"
84+
$CONTROL_PLANE_VM_SIZE="NC_G6_28_v1"
8585
8686
$AGENT_POOL_CONFIGURATION = New-AzNetworkCloudInitialAgentPoolConfigurationObject `
8787
-Count $INITIAL_AGENT_POOL_COUNT `
@@ -140,7 +140,7 @@ $CUSTOM_LOCATION_TYPE="CustomLocation"
140140
$LOCATION="<ClusterAzureRegion>"
141141
$CLUSTER_NAME="myNexusK8sCluster"
142142
$AGENT_POOL_NAME="myNexusK8sCluster-nodepool-2"
143-
$AGENT_POOL_VM_SIZE="NC_G2_v1"
143+
$AGENT_POOL_VM_SIZE="NC_P10_56_v1"
144144
$AGENT_POOL_COUNT="1"
145145
$AGENT_POOL_MODE="User"
146146
```

0 commit comments

Comments
 (0)