简体   繁体   English

我怎样才能 SSH 到我的 GCP Kube.netes 集群?

[英]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.

相关问题 如何判断我的 Kubernetes 集群中是否启用了服务器端应用? - How can I tell if server-side apply is enabled in my Kubernetes cluster? 当我的程序在集群外运行时,如何使用 AWS 使用 .NET 向 EKS Kube.netes API 进行身份验证? - How can I use AWS to authenticate to the EKS Kubernetes API using .NET when my program is running outside the cluster? 使用 python api 从 GCP 管理 Kubernetes 集群 - Managing Kubernetes cluster from GCP with python api 如何将实时生产 kubernetes 集群迁移到另一个集群,同时最大限度地减少停机时间? - How can I migrate a live production kubernetes cluster to another cluster while minimizing downtime? 如何授予我的 Kubernetes 集群从 gcr.io 提取图像的权限? - How do I grant permission to my Kubernetes cluster to pull images from gcr.io? 在谷歌云 Kube.netes 集群中,我的 pod 有时会全部重启,我如何找到重启的原因? - in a google cloud Kubernetes cluster my pods sometimes all restart, how do I find the reason for the restart? 在 GCP 中,我可以查看 GKE Monitoring 仪表板。 如何为 Kube.netes 容器的 CPU 和 memory 利用率创建警报 - In GCP , I can able to view GKE Monitoring dashboard. How to create alerts for CPU and memory Utilization for Kubernetes Container 如何在 GCP 上部署 Quarkus? - How I can deploy Quarkus on GCP? 如何将 SSH 写入 Kube.netes 节点或服务器 - How to SSH into a Kubernetes Node or Server ssh 如何连接到 GCP 上的主节点? - how does ssh connect to master node on GCP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM