A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/code/docs/vscode/create-configure-gke-cluster below:

Create and configure a GKE cluster in Cloud Code for VS Code

Create and configure a GKE cluster in Cloud Code for VS Code

Stay organized with collections Save and categorize content based on your preferences.

With Cloud Code, you can create a Kubernetes cluster with Google Kubernetes Engine (GKE).

Note: For developing and testing an app, create and run on a non-production cluster. For changes that will be rolled out to production, use an automated CI/CD workflow. Create a GKE cluster and add it to your KubeConfig

To create a cluster:

  1. Click Cloud Code and then expand the Kubernetes explorer.
  2. Click add Add a Cluster to the KubeConfig.
  3. Select Google Kubernetes Engine and then select Yes to enable the Google Kubernetes Engine API in your project.
  4. Choose Standard or Autopilot. For more information, see Comparing Autopilot and Standard modes.
  5. If prompted, click Open to permit Cloud Code to open the Google Cloud console.
  6. In Google Cloud console, choose any configuration options that you want to customize and then click Create.
  7. After the cluster is created, in Cloud Code, click the Refresh icon.
  8. After the name of your new cluster appears in the list, click the cluster name. Your new cluster is added to your kubeconfig and set as the default context.

Tip: To create a Kubernetes cluster using the command palette, launch the command palette (press Ctrl/Cmd+Shift+P or click View > Command Palette) and then run the Cloud Code: Create GKE cluster command.

Work with an existing GKE cluster

If you have an existing Standard or Autopilot GKE cluster, you can set it as your active cluster and work with it using Cloud Code.

  1. Click Cloud Code and then expand the Kubernetes explorer.
  2. Click add Add a Cluster to the KubeConfig.
  3. Click Google Kubernetes Engine.
  4. Click your cluster name. Your cluster is added to the KubeConfig.
Set a cluster as the default context

The active cluster is the cluster that your application is deployed to by default.

  1. Click Cloud Code and then expand the Kubernetes explorer.
  2. Right-click a cluster and then click Set as Active Cluster.
Run an application on GKE

To run or debug an application on GKE, you'll need to define the container image repository for your project.

When attempting to debug, you may be prompted to authenticate your credentials to run and debug an application locally.

To learn more, see get started with Cloud Code for Kubernetes

Remove a cluster from your KubeConfig

After you remove a cluster from your KubeConfig, the cluster is not available to deploy to.

  1. Click Cloud Code and then expand the Kubernetes explorer.
  2. Right-click a cluster and then click Remove Context Under Cluster.
Open an interactive terminal to a container
  1. Click Cloud Code and then expand the Kubernetes explorer.
  2. Expand your minikube cluster, expand Pods, and then expand Containers.
  3. Right-click a container and then click Get Terminal.
Open an external IP address
  1. Click Cloud Code and then expand the Kubernetes explorer.
  2. Expand your minikube cluster and then expand Services.
  3. Expand External IPs, right-click an IP address, and then click Open Address.
  4. Click Open.
Create and add a cluster from another cloud provider

If you're using an on-premises cluster or a cluster from another provider such as Azure or AWS, use the provider's tools to create the cluster and add it to your KubeConfig.

What's next Get Support

To send feedback, report issues on

GitHub

, or ask a question on

Stack Overflow

.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-02 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["Cloud Code allows you to create and manage Kubernetes clusters within Google Kubernetes Engine (GKE), supporting both Standard and Autopilot modes."],["You can easily add existing GKE clusters to your KubeConfig within Cloud Code and set any cluster as the default context for application deployment."],["Cloud Code provides tools to interact with your cluster, such as opening an interactive terminal to a container and opening an external IP address."],["You are able to remove a cluster from your KubeConfig, and create and add a cluster from other providers like Azure or AWS using their tools."],["Cloud Code enhances development with features such as debugging, file sync, hot reloading, and supports managing multiple KubeConfig files and developing microservice applications."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4