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/azure-cache-for-redis/cache-tutorial-active-replication.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,17 +114,19 @@ az aks install-cli
114
114
```
115
115
If you use Azure Cloud Shell, _kubectl_ is already installed, and you can skip this step.
116
116
117
-
### Connect to your AKS cluster
117
+
### Connect to your AKS clusters in two regions
118
118
119
-
Use the portal to copy the resource group and cluster name for your AKS cluster. To configure _kubectl_ to connect to your AKS cluster, use the following command with your resource group and cluster name:
119
+
Use the portal to copy the resource group and cluster name for your AKS cluster in the West US 2 region. To configure _kubectl_ to connect to your AKS cluster, use the following command with your resource group and cluster name:
120
120
121
121
```bash
122
-
az aks get-credentials --resource-group myResourceGroup --name myClusterName
122
+
az aks get-credentials --resource-group myResourceGroup --name myClusterName -f AKS_WestUS2
123
123
```
124
124
125
125
Verify that you are able to connect to your cluster by running the following command:
Now, repeat the steps for getting credentials for your AKS cluster in East US region.
143
+
144
+
```bash
145
+
az aks get-credentials --resource-group myResourceGroup --name myClusterName -f AKS_EastUS
146
+
147
+
set kubeconfig=AKS_EastUS
148
+
149
+
kubectl get nodes
150
+
```
151
+
152
+
Thus, you now have context on your machine to connect to both the AKS clusters on your machine.
153
+
Alternately, you can apply the YAML files to appropriate AKS clusters through portal directly. To apply YAML through portal, go to the "Services and ingresses" blade for your AKS cluster, and click on the "Create" and choose "Apply a YAML" option. This will open an editor where you can copy paste your YAML file.
154
+
155
+
140
156
## Deploy and test your application
141
157
142
158
Run the following command to deploy the application instance to your AKS cluster in **West US 2**:
143
159
144
160
```bash
161
+
set kubeconfig=AKS_WestUS2
162
+
145
163
kubectl apply -f app_west.yaml
146
164
```
147
165
@@ -183,6 +201,8 @@ Once the External-IP is available, open a web browser to the External-IP address
183
201
Run the same deployment steps and deploy an instance of the demo application to run in East US region.
0 commit comments