diff --git a/docs/gcp-gke.md b/docs/gcp-gke.md index 1933d801..6d4aa898 100644 --- a/docs/gcp-gke.md +++ b/docs/gcp-gke.md @@ -44,7 +44,7 @@ Here's an example command to create a cluster. See the [gcloud docs](https://clo You might need to iterate on the command above, so to delete the cluster: ``` - gcloud container clusters delete my-cluster --zone=us-central1-a + gcloud container clusters delete sandbox --zone=us-central1-a ``` # Enable CSI Driver @@ -55,10 +55,38 @@ CSI Driver is required for persistent volumes to be mounted to pods. You can ena gcloud container clusters update sandbox --update-addons=GcePersistentDiskCsiDriver=ENABLED --zone=us-central1-a ``` +# Connect to Your Cluster + +See [GKE docs for installing and authenticating with kubectl](https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl#install_plugin) + +See [docs for installing Helm](https://helm.sh/docs/intro/install/) + +Configure kubectl to connect to your GKE cluster: + +``` +gcloud container clusters get-credentials sandbox \ + --region=us-central1-a +``` + +To test the connection, run: + +``` +kubectl get nodes +``` + +You should see something like: + +``` +NAME STATUS ROLES AGE VERSION +gke-eoapi-test-default-pool-94a2b7e7-vg4f Ready 5m v1.31.5-gke.1233000 +``` + # Install NGINX Ingress Controller NGINX Ingress Controller can be installed through `helm` using the following command: ``` +kubectl create ns eoapi + helm upgrade --install ingress-nginx ingress-nginx \ --repo https://kubernetes.github.io/ingress-nginx \ --namespace eoapi @@ -68,8 +96,12 @@ See the [NGINX Ingress Controller docs](https://kubernetes.github.io/ingress-ngi # Install Cert Manager -Cert Manager can be installed through `helm` using the following command: +Cert Manager can be installed through `helm` using the following commands: ``` +helm repo add jetstack https://charts.jetstack.io + +helm repo update + helm upgrade --install cert-manager jetstack/cert-manager \ --namespace cert-manager \ --create-namespace \ @@ -77,4 +109,4 @@ helm upgrade --install cert-manager jetstack/cert-manager \ --set installCRDs=true ``` -Now we are ready to install eoapi. See the [eoapi installation instructions](../README.md/#helm-installation) for more details. \ No newline at end of file +Now we are ready to install eoapi. See the [eoapi installation instructions](../README.md/#helm-installation) for more details.