[英]How can I SSH to my GCP Kubernetes cluster?
I created cluster in dashboard.我在仪表板中创建了集群。 From cloudshell,.ssh folder
来自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
How to connect to GKE cluster from me Ubuntu laptop?如何从我的 Ubuntu 笔记本电脑连接到 GKE 集群?
You can connect to the GKE
cluster from your Ubuntu
and local machine with a gcloud
command:您可以使用
gcloud
命令从您的Ubuntu
和本地计算机连接到GKE
集群:
gcloud container clusters get-credentials your-gke --region europe-west1 --project your-project
You need to use an authorized identity
from you shell
session (Google user or Service Account).您需要使用您
shell
session(Google 用户或服务帐户)的授权identity
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.