Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the cluster zonal #128

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deckard/iaac/gcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ sudo apt-get update && sudo apt-get install google-cloud-cli
1-We then create the cluster called `k8s-cluster`. This cluster will be installed in `europe-west4` in GCP regions.
```
gcloud container clusters create k8s-cluster \
--region europe-west4 --num-nodes 1 --no-enable-autoupgrade
--zone europe-west4-a --num-nodes 1 --no-enable-autoupgrade
```

2- In order to manage the Kubernetes cluster we need to [install `kubectl`](https://kubernetes.io/docs/tasks/tools/#kubectl).

3- Then run the following command to get the credentials:
```
gcloud container clusters get-credentials k8s-cluster \
--region europe-west4
--zone europe-west4-a
```

After this step you should now be able to access kubernetes cluster, give it a try by simply running the following:
Expand All @@ -50,7 +50,7 @@ gke-k8s-cluster-default-pool-feae82f2-zfsj Ready <none> 5m v1.27.3-gke
```
gcloud container node-pools create k8s-node-pool \
--accelerator type=nvidia-tesla-v100,count=1,gpu-driver-version=default \
--region europe-west4 --cluster k8s-cluster \
--zone europe-west4-a --cluster k8s-cluster \
--machine-type n1-standard-2 \
--num-nodes 1 \
--min-nodes 1 \
Expand Down
Loading