Skip to content

Commit 759b4b1

Browse files
committed
Add guide for setting up kubectl on GCP
1 parent 9d5857f commit 759b4b1

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

docs/clusters/gcp/kubectl.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Setting up kubectl
2+
3+
## Install kubectl
4+
5+
Follow these [instructions](https://kubernetes.io/docs/tasks/tools/install-kubectl).
6+
7+
## Install gcloud
8+
9+
Follow these [instructions](https://cloud.google.com/sdk/docs/install).
10+
11+
## Update kubeconfig
12+
13+
```bash
14+
gcloud container clusters get-credentials <cluster_name> --zone <zone> --project <project_id>
15+
```
16+
17+
## Test kubectl
18+
19+
```bash
20+
kubectl get pods
21+
```

docs/summary.md

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
* GCP
5252
* [Install](clusters/gcp/install.md)
5353
* [Credentials](clusters/gcp/credentials.md)
54+
* [Setting up kubectl](clusters/gcp/kubectl.md)
5455
* [Uninstall](clusters/gcp/uninstall.md)
5556

5657
## Clients

docs/workloads/dependencies/docker-images.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Note: for TensorFlow Predictors, two containers run together to serve prediction
9696

9797
### Install and configure kubectl
9898

99-
Follow these [instructions](../../clusters/aws/kubectl.md).
99+
Follow the instructions for [aws](../../clusters/aws/kubectl.md) or [gcp](../../clusters/gcp/kubectl.md).
100100

101101
### Setting credentials
102102

0 commit comments

Comments
 (0)