debian-mirror-gitlab/doc/install/kubernetes/preparation/connect.md

28 lines
1 KiB
Markdown
Raw Normal View History

2018-11-08 19:23:39 +05:30
# Connecting your computer to a cluster
In order to deploy software and settings to a cluster, you must connect and authenticate to it.
## Connect to GKE cluster
2018-11-20 20:47:30 +05:30
The command for connection to the cluster can be obtained from the
[Google Cloud Platform Console](https://console.cloud.google.com/kubernetes/list)
by the individual cluster.
2018-11-08 19:23:39 +05:30
2018-11-20 20:47:30 +05:30
Look for the **Connect** button in the clusters list page or use the command below,
filling in your cluster's information:
2018-11-08 19:23:39 +05:30
```
gcloud container clusters get-credentials <cluster-name> --zone <zone> --project <project-id>
```
## Connect to EKS cluster
2018-11-20 20:47:30 +05:30
For the most up to date instructions, follow the Amazon EKS documentation on
[connecting to a cluster](https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html#eks-configure-kubectl).
2018-11-08 19:23:39 +05:30
## Connect to local minikube cluster
If you are doing local development, you can use `minikube` as your
local cluster. If `kubectl cluster-info` is not showing `minikube` as the current
cluster, use `kubectl config set-cluster minikube` to set the active cluster.