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: kustomize/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,8 @@ Here is the list of the variations available as Kustomize components that you co
73
73
- Enables Monitoring (Stats), Tracing, Profiler, and Debugger for various services within Online Boutique. The code removes the existing environment variables (`DISABLE_STATS`, `DISABLE_TRACING`, `DISABLE_PROFILER`, `DISABLE_DEBUGGER`) from appropriate YAML config files.
74
74
- [**Integrate with Memorystore (redis)**](components/memorystore)
75
75
- The default Online Boutique deployment uses the in-cluster `redis` database for storing the contents of its shopping cart. The Memorystore deployment variation overrides the default database with its own Memorystore (redis) database. These changes directly affect `cartservice`.
76
+
- [**Integrate with Spanner**](components/spanner)
77
+
- The default Online Boutique deployment uses the in-cluster `redis` database for storing the contents of its shopping cart. The Spanner deployment variation overrides the default database with its own Spanner database. These changes directly affect `cartservice`.
76
78
- [**Secure with Network Policies**](components/network-policies)
77
79
- Deploy fine granular `NetworkPolicies` for Online Boutique.
78
80
- [**Create Kubernetes Service Accounts**](components/service-accounts)
--ddl"CREATE TABLE CartItems (userId STRING(1024), productId STRING(1024), quantity INT64) PRIMARY KEY (userId, productId); CREATE INDEX CartItemsByUserId ON CartItems(userId);"
23
30
```
24
-
_Note: With latest version of `gcloud` you can create a free Spanner instance by leveraging the `--instance-type free-instance` parameter._
25
31
26
32
## Grant the `cartservice`'s service account access to the Spanner database
27
33
@@ -78,9 +84,13 @@ sed -i "s/SPANNER_DB_USER_GSA_ID/${SPANNER_DB_USER_GSA_ID}/g" components/spanner
78
84
79
85
You can locally render these manifests by running `kubectl kustomize .` as well as deploying them by running `kubectl apply -k .`.
80
86
81
-
## Note on Spanner connection environmental variables
87
+
## Note on Spanner connection environment variables
82
88
83
89
The following environment variables will be used by the `cartservice`, if present:
84
90
-`SPANNER_INSTANCE`: defaults to `onlineboutique`, unless specified.
85
91
-`SPANNER_DATABASE`: defaults to `carts`, unless specified.
86
-
-`SPANNER_CONNECTION_STRING`: defaults to `projects/${SPANNER_PROJECT}/instances/${SPANNER_INSTANCE}/databases/${SPANNER_DATABASE}`. If this variable is defined explicitly, all other environmental variables will be ignored.
92
+
-`SPANNER_CONNECTION_STRING`: defaults to `projects/${SPANNER_PROJECT}/instances/${SPANNER_INSTANCE}/databases/${SPANNER_DATABASE}`. If this variable is defined explicitly, all other environment variables will be ignored.
93
+
94
+
## Resources
95
+
96
+
-[Use Google Cloud Spanner with the Online Boutique sample apps](https://medium.com/google-cloud/f7248e077339)
0 commit comments