Skip to content

Commit 696e8c5

Browse files
aleoliadamjensenbot
authored andcommitted
docs: add gke regional installation commands
1 parent b300913 commit 696e8c5

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

docs/installation/install.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,10 @@ export GKE_SERVICE_ACCOUNT_PATH=~/.liqo/gcp_service_account
187187
188188
# The ID of the GCP project where your cluster was created
189189
export GKE_PROJECT_ID=project-id
190-
# The GCP zone where your GKE cluster is executed
191-
export GKE_CLUSTER_ZONE=europe-west-1b
190+
# The GCP zone where your GKE cluster is executed (if you are using zonal GKE clusters)
191+
export GKE_CLUSTER_ZONE=europe-west1-b
192+
# The GCP region where your GKE cluster is executed (if you are using regional GKE clusters)
193+
export GKE_CLUSTER_REGION=europe-west1
192194
# The name of the GKE resource on GCP
193195
export GKE_CLUSTER_ID=liqo-cluster
194196
```
@@ -224,18 +226,25 @@ gcloud iam service-accounts keys create ${GKE_SERVICE_ACCOUNT_PATH} \
224226
```
225227
226228
Finally, you should retrieve the cluster’s kubeconfig, if you have not already.
227-
You may use the following CLI command:
229+
You may use the following CLI command, in case of zonal GKE clusters:
228230
229231
```bash
230232
gcloud container clusters get-credentials ${GKE_CLUSTER_ID} \
231233
--zone ${GKE_CLUSTER_ZONE} --project ${GKE_PROJECT_ID}
232234
```
233235
236+
or, in case of regional GKE clusters:
237+
238+
```bash
239+
gcloud container clusters get-credentials ${GKE_CLUSTER_ID} \
240+
--region ${GKE_CLUSTER_REGION} --project ${GKE_PROJECT_ID}
241+
```
242+
234243
The retrieved kubeconfig will be added to the currently selected file (i.e., based on the `KUBECONFIG` environment variable, with fallback to the default path `~/.kube/config`) or created otherwise.
235244
236245
**Installation**
237246
238-
Liqo can be installed on a GKE cluster through:
247+
Liqo can be installed on a zonal GKE cluster through:
239248
240249
```bash
241250
liqoctl install gke --project-id ${GKE_PROJECT_ID} \
@@ -244,6 +253,15 @@ liqoctl install gke --project-id ${GKE_PROJECT_ID} \
244253
--credentials-path ${GKE_SERVICE_ACCOUNT_PATH}
245254
```
246255
256+
or, in case of regional GKE clusters:
257+
258+
```bash
259+
liqoctl install gke --project-id ${GKE_PROJECT_ID} \
260+
--cluster-id ${GKE_CLUSTER_ID} \
261+
--region ${GKE_CLUSTER_REGION} \
262+
--credentials-path ${GKE_SERVICE_ACCOUNT_PATH}
263+
```
264+
247265
By default, the cluster is assigned the same name as that assigned in GCP.
248266
Alternatively, you can manually specify a different name with the `--cluster-name` *liqoctl* flag.
249267
````

0 commit comments

Comments
 (0)