Reference Documentation

With VS Code, you can carry out a range of Kubernetes tasks using just the Command Palette.

  1. Launch the Command Palette using Cmd/Ctrl+Shift+P or the Manage menu Manage icon.
  2. Select any task prefixed with Cloud Code: to run.

This is the full list of available Cloud Code commands:

Command Purpose
Cloud Code: Add a cluster to the KubeConfig Configure access to a cluster by adding it to your configuration files.
Cloud Code: Add Secret as Environment Variable Add an environment variable to the deployment with the value of a secret (base-64 decoded).
Cloud Code: Apply current JSON/YAML file to the K8s deployed resource Apply the current configuration files to a Kubernetes deployed resource.
Cloud Code: Copy Resource Value Copy the value of the given resource.
Cloud Code: Create GKE cluster Create a GKE cluster opens the Google Cloud Console so that you can create a cluster and then gives you the option to add the cluster to your KubeConfig.
Cloud Code: Create Kubernetes resource from current file Create a Kubernetes resource based on the configuration of the currently open file.
Cloud Code: Create Secret Create a secret in Secret Manager.
Cloud Code: Create Secret Version Create a new version of a secret in Secret Manager.
Cloud Code: Debug on Cloud Run emulator Debug your application using the Cloud Run emulator.
Cloud Code: Debug on Kubernetes Debug your application on Kubernetes.
Cloud Code: Delete Delete a given resource.
Cloud Code: Deploy to Cloud Run Deploy your application to Cloud Run.
Cloud Code: Describe View a detailed description of the resource.
Cloud Code: Diff current JSON/YAML file with K8s deployed resource View the differences between a YAML file in source control and a deployed YAML file.
Cloud Code: Dry-run current config for client-side validation Perform a dry run of the current configuration for client-side validation.
Cloud Code: Dry-run current config for server-side validation Perform a dry run of the current configuration for server-side validation.
Cloud Code: Get Terminal Open a terminal into the container.
Cloud Code: Manage custom sample repositories Import a custom sample from a source code repository. For more information, see Setting up a sample repository.
Cloud Code: Mount Secret as Volume Mount the secret as a deployment in a base-64 decoded file.
Cloud Code: New Application Create a new application by copying a sample application.
Cloud Code: Open Minikube dashboard for starting/stopping local Minikube cluster Open the minikube dashboard to monitor and configure a local minikube cluster.
Cloud Code: Open Cloud Code status bar menu Open the Cloud Code status bar menu.
Cloud Code: Open in Cloud Shell Open the current workspace in Cloud Shell.
Cloud Code: Open Kubernetes dashboard Open the Kubernetes dashboard.
Cloud Code: Open URL Open a URL in a web browser.
Cloud Code: Remove KubeConfig from Kubernetes Explorer Remove a given KubeConfig from the Kubernetes Explorer.
Cloud Code: Report Extension Issue on GitHub Open a pre-populated issue on GitHub.
Cloud Code: Run on Cloud Run Emulator Run the application on the Cloud Run emulator.
Cloud Code: Run on Kubernetes Run the current application on the active cluster.
Cloud Code: Search for API Search for an API and display its details in VS Code.
Cloud Code: Search for GKE clusters to set as current context Set the context for the active cluster.
Cloud Code: Search for secret Find a secret in Secret Manager in the current project.
Cloud Code: Set as Active Namespace Set the given namespace as the current active namespace.
Cloud Code: Show software licenses and privacy Display the Cloud Code software license, open OSS notices, and privacy policy.
Cloud Code: Sign out of all accounts in Cloud SDK Sign out of all accounts in Cloud SDK.
Cloud Code: Stream Logs Open a terminal and stream logs from the container.
Cloud Code: Switch KubeConfig Upload a new KubeConfig.
Cloud Code: Troubleshoot problems with Cloud SDK Run a diagnostic of Cloud SDK tools.
Cloud Code: View Logs Open a terminal and write out the current logs from the container
Cloud Code: View metrics View metrics for a pod or all configured pods.
Cloud Code: Welcome Display the welcome screen.
Cloud Code - Cloud APIs: Focus on view Display the Google Cloud API tree view.
Cloud Code - Cloud Run: Focus on Cloud Run view Display the Cloud Run Explorer.
Cloud Code - Kubernetes: Focus on Kubernetesview Display the Kubernetes Explorer.
Cloud Code - Secret Manager: Focus on view Display the Secret Manager.
View: Show Cloud Code - Cloud APIs Display the Google Cloud API tree view.
View: Show Cloud Code - Cloud Run Display the Cloud Run Explorer.
View: Show Cloud Code - Kubernetes Display the Kubernetes Explorer.
View: Show Cloud Code - Secret Manager Display the Secret Manager.

Getting Support

To send feedback, report issues on GitHub, or ask a question on Stack Overflow.