我在仪表板中创建了集群。从cloudshell,.ssh文件夹
jhomes369@cloudshell:~/.ssh (leafy-garden-359409)$ ls -la
total 20
drwx------ 2 jhomes369 jhomes369 4096 Oct 4 11:00 .
drwxr-xr-x 7 jhomes369 jhomes369 4096 Oct 3 10:11 ..
-rw------- 1 jhomes369 jhomes369 0 Oct 4 11:00 admin-cluster.key
-rw------- 1 jhomes369 jhomes369 2643 Sep 20 10:18 google_compute_engine
-rw-r--r-- 1 jhomes369 jhomes369 597 Sep 20 10:18 google_compute_engine.pub
-rw-r--r-- 1 jhomes369 jhomes369 189 Sep 20 10:18 google_compute_known_hosts
-rw------- 1 jhomes369 jhomes369 0 Oct 4 10:55 mgmt-cluster-2.key
如何从我的Ubuntu笔记本电脑连接到GKE集群?
您可以使用gcloud
命令从Ubuntu
和本地机器连接到GKE
集群:
gcloud container clusters get-credentials your-gke --region europe-west1 --project your-project
您需要使用shell
会话中的授权identity
(谷歌用户或服务帐户(。