简体   繁体   English

使用 GCP 的云代码插件(谷歌云平台)

[英]using cloud code plugin for GCP (google cloud platform)

I've a local clusters (minikube) that work pefectly well on my laptop (mint 19.3, Intellij 2019.3 with cloud code plugin, java (11) backend, mongo db, front end, .. ok ).我有一个本地集群 (minikube),可以在我的笔记本电脑上完美运行(mint 19.3,Intellij 2019.3 和云代码插件,java (11) 后端,mongo db,前端,.. ok)。 But I can't find any usefull informations (on google cloud plateform site or intellij) to configure a new google cloud cluster.但是我找不到任何有用的信息(在谷歌云平台站点或 intellij 上)来配置新的谷歌云集群。 I can only see my minikube conf on the cluster explorer...even when I stopped minikube !我只能在集群浏览器上看到我的 minikube conf ......即使我停止了 minikube !

It seems that configuration could be found in kubctl !?似乎可以在 kubctl 中找到配置!? But how can I force plugin to connect GCP.但是如何强制插件连接 GCP。 I've a GCP account and created a cluster and an image repo.我有一个 GCP 帐户并创建了一个集群和一个图像存储库。

GCP documentation looks really unclear. GCP 文档看起来很不清楚。

I solved the problem.我解决了这个问题。 You need to install SDK cloud ( an other solution ?), an use gcloud instructions to link kubctl with new kubernetes context, and for credentials contexts.您需要安装 SDK cloud(其他解决方案?),使用 gcloud 指令将 kubctl 与新的 kubernetes 上下文链接,以及凭据上下文。 a new configuration for kubctl must be generated, and you have to switch to that configuration (kubectl config set your-new-cluster).必须为 kubctl 生成一个新配置,您必须切换到该配置(kubectl config set your-new-cluster)。

Just one thing, to use google storage for docker images, you should enter where to find or put it in the conf of the run/edit configuration line image options -> gcr.io/your-project-id .只是一件事,要将 google 存储用于 docker 图像,您应该输入在运行/编辑配置行图像选项 -> gcr.io/your-project-id 的 conf 中查找或放置它的位置。 I couldn't use the bucket i created before pushing, a new one was created.我无法使用我在推送之前创建的存储桶,创建了一个新存储桶。 Is there a solution to connect with an existing bucket ?是否有与现有存储桶连接的解决方案?

If you want to manage your clusters from an on-prem machine you will need to install Cloud SDK and configure your cluster access, this will allow you to use kubectl comands to create, and administrate the clusters on GKE.如果您想从本地机器管理集群,则需要安装 Cloud SDK并配置集群访问权限,这将允许您使用 kubectl 命令在 GKE 上创建和管理集群。 Cloud code plugin should install this SDK automatically, you can take a look to this guide to learn hoy to use it.云码插件应该会自动安装这个SDK,你可以看看这个指南来学习如何使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 intellij 的云代码插件是否适用于 Azure - Does the cloud code plugin for intellij work with Azure 初始化插件com.google.gct.core IntelliJ的Google Cloud Tools插件时发生致命错误 - Fatal error initializing plugin com.google.gct.core Google Cloud Tools plugin for IntelliJ 在Google Cloud Endpoints中加载资源文件 - Load resource file in Google Cloud Endpoints 无法解析 Cloud Vision API 的符号“google” - Cannot resolve symbol 'google' for Cloud Vision API 在Idea Intellij上,如何连接到Google Cloud SQL - On Idea Intellij, how to connect to Google Cloud SQL 从云端自动更新 Intellij IDEA 代码样式 - Autoupdate Intellij IDEA code style from cloud 如何将IntelliJ连接到Google Cloud Development Git存储库 - How to connect IntelliJ to Google Cloud Development Git respository Google Cloud Java语音识别gRPC示例失败,出现NoSuchMethodError - Google Cloud Java Speech Recognition gRPC Example Fails with NoSuchMethodError IntelliJ无法找到google-cloud-storage类 - IntelliJ can't find google-cloud-storage classes Google Cloud 安全帐户上下文在 Intellij Application Runner 中不起作用 - Google Cloud Security Account Context not working in Intellij Application Runner
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM