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: azure-votes-redis/README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ To deploy this demo application you'll need the following:
20
20
## Set up Azure Service Operator
21
21
22
22
ASO lets you manage Azure resources using Kubernetes tools.
23
-
The operator is installed in your cluster and propagates changes to resources there to the Azure Resource Manager.
23
+
The operator is installed in your cluster, and propagates changes from cluster resources to Azure, using the Azure Resource Manager.
24
24
[Read more about how ASO works](https://github.com/azure/azure-service-operator#what-is-it)
25
25
26
26
Follow [these
@@ -29,17 +29,22 @@ Part of this installs
29
29
the [custom resource definitions](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) for some of the Azure Resources.
30
30
31
31
### Note:
32
-
Only a few Custom Resource Definitions will be installed in your cluster when you follow the Azure Service Operator set up instructions. The CRDs required specifically to run this sample will be installed along with the sample.
32
+
As you follow the installation instructions for Azure Service Operator, add `cache.azure.com/*` to the configuration of CRD Patterns. (ASO doesn't automatically install all available Custom Resource Definitions, as most users only want a small subset.)
33
33
34
34
35
35
## Deploy the application and Azure resources
36
36
37
-
The YAML documents in [azure-vote-managed-redis.yaml](azure-vote-managed-redis.yaml) create a number of things:
37
+
The YAML documents in [azure-vote-managed-redis.yaml](azure-vote-managed-redis.yaml) create:
38
38
39
39
* A Kubernetes namespace named `azure-vote`,
40
40
* An Azure resource group named `aso-redis-demo`,
41
-
* An Azure Cache for Redis instance. Note that the container spec for redis.cache.azure.com instance is configured to retrieve two secrets that are produced by the Azure Cache for Redis instance - hostname and primaryKey. As described [here](https://azure.github.io/azure-service-operator/guide/secrets/#how-to-retrieve-secrets-created-by-azure), these secrets need to be mapped to our sample application and the container for our sample application will be blocked until these two secrets are created.
42
-
* A deployment and service for the popular [AKS voting sample app](https://github.com/Azure-Samples/azure-voting-app-redis). We have updated the original container spec to introduce environment variables for the managed Redis hostname and access key.
41
+
* An Azure Cache for Redis instance.
42
+
* A deployment and service for the popular [AKS voting sample app](https://github.com/Azure-Samples/azure-voting-app-redis).
43
+
44
+
The redis.cache.azure.com instance is configured to retrieve two secrets that are produced by the Azure Cache for Redis instance - hostname and primaryKey. As described [here](https://azure.github.io/azure-service-operator/guide/secrets/#how-to-retrieve-secrets-created-by-azure), these secrets need to be mapped to our sample application and the container for our sample application will be blocked until these two secrets are created.
45
+
46
+
The Voting Sample is configured with environment variables that read the secretes for the managed Redis hostname and access key, allowing the sample to use the cache.
47
+
43
48
44
49
Create them all by applying the file:
45
50
```sh
@@ -54,9 +59,9 @@ watch kubectl get -n azure-vote resourcegroup,redis
54
59
You can also find the resource group in the [Azure portal](https://portal.azure.com) and watch the Azure Cache for Redis instance being created there.
55
60
56
61
### Note
57
-
It could take a few minutes for the Azure Cache for Redis to be provisioned. In that time you might see some `ResourceNotFound`errors, or messages indicating that the secret, Azure Cache for Redis or the application deployment are not ready.
62
+
It may take a few minutes for the Azure Cache for Redis to be provisioned. In that time, you may see some `ResourceNotFound`messages in the logsindicating that the secret, the Azure Cache for Redis or the application deployment are not ready.
58
63
*This is OK!*
59
-
Once the Redis instance is created, secrets will be created and will unblock the sample application container creation. All errors should eventually resolve once the Redis instance is provisioned.
64
+
Once the Redis instance is created, secrets will be created and will unblock the sample application container creation. All errors will eventually resolve once the Redis instance is provisioned. These errors are ASO monitoring the creation of each resource, allowing it to take the next step as soon as the resource is available.
60
65
61
66
## Test the application
62
67
When the application runs, a Kubernetes service exposes the application front end to the internet. This process can take a few minutes to complete.
0 commit comments