Skip to content

Commit 4655e41

Browse files
committed
Acrolinx fixes
1 parent 6381fbf commit 4655e41

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

articles/azure-cache-for-redis/cache-tutorial-aks-get-started.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In this tutorial, you adapt the [AKS sample voting application](https://github.c
1515

1616
- An Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
1717
- An Azure Kubernetes Service Cluster - For more information on creating a cluster, see [Quickstart: Deploy an Azure Kubernetes Service (AKS) cluster using the Azure portal](/azure/aks/learn/quick-kubernetes-deploy-portal).
18-
- An user assigned managed identity that you want to use to connect to your Azure Cache for Redis instance.
18+
- A user assigned managed identity that you want to use to connect to your Azure Cache for Redis instance.
1919

2020
> [!IMPORTANT]
2121
> This tutorial assumes that you are familiar with basic Kubernetes concepts like containers, pods and service.
@@ -27,7 +27,7 @@ In this tutorial, you adapt the [AKS sample voting application](https://github.c
2727
For this tutorial, use a Standard C1 cache.
2828
:::image type="content" source="media/cache-tutorial-aks-get-started/cache-new-instance.png" alt-text="Screenshot of creating a Standard C1 cache in the Azure portal":::
2929

30-
1. Follow the steps through to create the cache.
30+
1. Follow the steps through to create the cache.
3131

3232
1. Once your Redis cache instance is created, navigate to the **Authentication** tab. Select the user assigned managed identity you want to use to connect to your Redis cache instance, then select **Save**.
3333

@@ -40,27 +40,27 @@ In this tutorial, you adapt the [AKS sample voting application](https://github.c
4040
1. Follow these [steps](/azure/aks/workload-identity-deploy-cluster) to configure a workload identity for your AKS cluster. Complete the following steps:
4141

4242
- Enable OIDC issuer and workload identity
43-
- Skip the step to create user assigned managed identity if you have already created your managed identity. If you create a new managed identity, ensure that you create a new Redis User for your managed identity and assign appropriate data access permissions.
44-
- Create a Kubernetes Service account annotated with the client id of your user assigned managed identity
43+
- Skip the step to create user assigned managed identity if you already created your managed identity. If you create a new managed identity, ensure that you create a new Redis User for your managed identity and assign appropriate data access permissions.
44+
- Create a Kubernetes Service account annotated with the client ID of your user assigned managed identity
4545
- Create a federated identity credential for your AKS cluster.
4646

4747
## Configure your workload that connects to Azure Cache for Redis
4848

49-
Next, set up the AKS workload to connect to Azure Cache for Redis after you have configured the AKS cluster.
49+
Next, set up the AKS workload to connect to Azure Cache for Redis after you configure the AKS cluster.
5050

5151
1. Download the code for the [sample app](https://github.com/Azure-Samples/azure-cache-redis-sample/connect-from-aks).
5252

5353
1. Build and push docker image to your Azure Container Registry using [az acr build](/azure/acr?view=azure-cli-latest.md#az-acr-build) command
5454

55-
```bash
56-
az acr build --image sample/connect-from-aks-sample:1.0 --registry yourcontainerregistry --file Dockerfile .
57-
```
55+
```bash
56+
az acr build --image sample/connect-from-aks-sample:1.0 --registry yourcontainerregistry --file Dockerfile .
57+
```
5858

5959
1. Attach your container registry to your AKS cluster using following command:
6060

61-
```bash
62-
az aks update --name clustername --resource-group mygroup --attach-acr youracrname
63-
```
61+
```bash
62+
az aks update --name clustername --resource-group mygroup --attach-acr youracrname
63+
```
6464

6565
## Deploy your workload
6666

@@ -78,30 +78,30 @@ If you use Azure Cloud Shell, _kubectl_ is already installed, and you can skip t
7878
7979
### Connect to your AKS cluster
8080
81-
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:
81+
1. 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:
8282
83-
```bash
84-
az aks get-credentials --resource-group myResourceGroup --name myClusterName
85-
```
83+
```bash
84+
az aks get-credentials --resource-group myResourceGroup --name myClusterName
85+
```
8686
87-
Verify that you're able to connect to your cluster by running the following command:
87+
1. Verify that you're able to connect to your cluster by running the following command:
8888

89-
```bash
90-
kubectl get nodes
91-
```
89+
```bash
90+
kubectl get nodes
91+
```
9292

93-
You should see similar output showing the list of your cluster nodes.
93+
You should see similar output showing the list of your cluster nodes.
9494

95-
```bash
96-
NAME STATUS ROLES AGE VERSION
97-
aks-agentpool-21274953-vmss000001 Ready agent 1d v1.29.7
98-
aks-agentpool-21274953-vmss000003 Ready agent 1d v1.29.7
99-
aks-agentpool-21274953-vmss000006 Ready agent 1d v1.29.7
100-
```
95+
```bash
96+
NAME STATUS ROLES AGE VERSION
97+
aks-agentpool-21274953-vmss000001 Ready agent 1d v1.29.7
98+
aks-agentpool-21274953-vmss000003 Ready agent 1d v1.29.7
99+
aks-agentpool-21274953-vmss000006 Ready agent 1d v1.29.7
100+
```
101101

102102
## Run your workload
103103

104-
1. This is the pod specification file that you use to run our workload. Take note that the pod has the label "azure.workloadidentity/use: "true"" and is annotated with _serviceAccountName_ as required by AKS workload identity. Replace the value of CONNECTION_STRING, CACHE_NAME and USER_ASSIGNED_PRINCIPAL_ID environment variables that correspond with your cache and managed identity.
104+
1. The following code describes the pod specification file that you use to run our workload. Take note that the pod has the label _azure.workloadidentity/use: "true"_ and is annotated with _serviceAccountName_ as required by AKS workload identity. Replace the value of CONNECTION_STRING, CACHE_NAME and USER_ASSIGNED_PRINCIPAL_ID environment variables that correspond with your cache and managed identity.
105105

106106
```YAML
107107
apiVersion: v1
@@ -140,39 +140,39 @@ aks-agentpool-21274953-vmss000006 Ready agent 1d v1.29.7
140140
```bash
141141
kubectl apply -f podspec.yaml
142142
```
143-
143+
144144
You get a response indicating your pod was created:
145145

146146
```bash
147147
pod/entrademo-pod created
148148
```
149-
149+
150150
1. To test the application, run the following command to check if the pod is running:
151151

152152
```bash
153153
kubectl get pods
154154
```
155-
155+
156156
You see your pod running successfully like:
157157

158158
```bash
159159
NAME READY STATUS RESTARTS AGE
160160
entrademo-pod 0/1 Completed 0 42s
161-
```
161+
```
162162

163-
1. Because this is a console app, you need to check the logs of the pod to verify that it ran as expected using this command.
163+
1. Because this tutorial is a console app, you need to check the logs of the pod to verify that it ran as expected using this command.
164164

165165
```bash
166166
kubectl logs entrademo-app
167167
```
168-
169-
You will see the following logs that indicates your pod has successfully connected to your Redis instance using user assigned managed identity
170-
168+
169+
You see the following logs that indicate your pod successfully connected to your Redis instance using user assigned managed identity
170+
171171
```bash
172172
Connecting with managed identity..
173173
Retrieved value from Redis: Hello, Redis!
174174
Success! Previous value: Hello, Redis!
175-
```
175+
```
176176

177177
## Clean up your cluster
178178

@@ -188,4 +188,4 @@ kubectl delete pod entrademo-pod
188188

189189
- [Quickstart: Deploy an Azure Kubernetes Service (AKS) cluster using the Azure portal](/azure/aks/learn/quick-kubernetes-deploy-portal)
190190
- [Quickstart: Deploy and configure workload identity on an Azure Kubernetes Service (AKS) cluster](/azure/aks/workload-identity-deploy-cluster)
191-
- [Azure Cache for Redis Entra ID Authentication](/azure/azure-cache-for-redis/cache-azure-active-directory-for-authentication)
191+
- [Azure Cache for Redis Entra ID Authentication](/azure/azure-cache-for-redis/cache-azure-active-directory-for-authentication)

0 commit comments

Comments
 (0)