A RetroSearch Logo

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

Search Query:

Showing content from https://cloud.google.com/code/docs/intellij/use-kubernetes-explorer below:

Cloud Code for IntelliJ Kubernetes overview

This page provides an overview of Kubernetes development in Cloud Code.

Use the Kubernetes Explorer in Cloud Code

The Kubernetes Explorer lets you access information about your clusters, nodes, workloads, and more, right from your IDE. You can also set a current context, stream and view logs, open an interactive terminal, and look up resource descriptions with the Kubernetes Explorer.

Cloud Code uses the default kubeconfig file, located under the $HOME/.kube directory on MacOS/Linux or %USERPROFILE%\.kube on Windows, for retrieving Kubernetes resources. You can switch or add new Kubeconfig files from within the Kubernetes Explorer. Kubeconfig files are YAML files containing your Kubernetes cluster details, certificate, and secret token for authenticating to the cluster.

To use a kubeconfig file other than the default kubeconfig, refer to the Work with kubeconfig files guide.

Access the Kubernetes Explorer

To view and manage your Kubernetes resources, use the Kubernetes Explorer, accessible from the side panel on the right. Alternatively, it can be accessed using

Tools

>

Cloud Code

>

Kubernetes

>

View Cluster Explorer

.

When you start a development or debugging session, the Development sessions section displays the structured logging view.

Basic actions

The Kubernetes Explorer is powered by kubectl. As long as you've configured your kubectl config file to access your clusters, you can use the Kubernetes Explorer to add clusters, browse all your available namespaces, resources, and nodes for your clusters, regardless of them being in the active or inactive context.

The available general Kubernetes actions, accessible through their icons in the Kubernetes Explorer, are:

Additional common Kubernetes debugging actions, accessible through their icons in the Kubernetes Explorer, are:

Copy a resource name

You can copy any Kubernetes resource name to the clipboard (including container and cluster names). To copy a resource name, right-click on the resource and choose Copy resource name.

Refresh resources

The Kubernetes Explorer watches for changes and automatically refreshes to reflect updates. To force a refresh of any Kubernetes resource to fetch its latest information, right-click the resource and choose Refresh.

You can also force a refresh of the entire

Kubernetes

Explorer using the

Kubernetes

Explorer's refresh button.

Describe resources

To display the details of any non-cluster resource, right-click the resource, then select

Describe

. The resource information is presented in the Kubernetes Explorer console panel.

To view resource details, you can also click any resource. If it has attached metadata, the metadata is available in the Resource Details panel in the Kubernetes Explorer.

Skaffold options Kubernetes options Customize your launch configuration

To configure how your application is run, you can customize your skaffold.yaml file.

You can also configure your launch in your

Run/Debug configurations

. To edit your configurations, go to

Run

>

Edit configurations

.

View remote YAML

To view the YAML of a resource in your cluster, right from the Kubernetes Explorer. Navigate to a resource in the Kubernetes Explorer, such as a pod, right-click the resource name, and then select

View Remote YAML

.

The YAML file corresponding to your specified resource opens in a new editor tab.

View logs

You can stream and view logs from Kubernetes resources into the Kubernetes Explorer console to monitor their progress.

After your application builds and runs in either regular or development mode, you'll be able to monitor logs streaming from your application from within your IDE.

You can also view logs from a specific service by navigating to the Kubernetes Explorer.

To select the resource you'd like to see logs from, such as a pod, a deployment, or a service:

  1. Right-click the resource and select Stream Logs. Alternatively, you can stream logs for individual containers running in pods.

    This outputs logs to the Kubernetes Explorer Console.

To view the status of resources in your deployment:

Launch a terminal

For pods and containers, you can open an interactive terminal by right-clicking the pod or container and selecting Get terminal.

Resource-specific actions

The Kubernetes Explorer displays clusters, namespaces, nodes, workloads (such as deployments, replicasets, pods and containers), services and ingresses, configurations (such as secrets and config maps) and storage (such as volumes). Using the Kubernetes Explorer, you can perform unique actions on some of these resources.

You can access the Kubernetes Explorer from the side panel or go to Tools > Cloud Code > Kubernetes > View Cluster Explorer.

To display the details of your deployed resources, right-click a resource label in the Kubernetes Explorer and then click Describe.

Clusters

The Add Cluster dialog appears and you can choose the project and cluster you'd like to use or create a new cluster.

Once done, click

OK

and access your chosen cluster and its underlying resources through the Kubernetes Explorer.

The Kubernetes Explorer refreshes automatically and you'll see the Kubernetes symbol next to the appropriate cluster.

If a cluster has multiple contexts configured, you'll be able to choose one of the available contexts to set as the current context.

Namespaces

If this action is successful, the Kubernetes Explorer refreshes automatically and you'll see an asterisk next to the namespace to signify that it's part of the current context.

Note that a Kubernetes context is a shortcut which gives you quick access to a namespace in your cluster. Contexts are normally created automatically when you start a minikube or GKE cluster. If you don't see the Set as current context option for a given namespace and you'd like to create a context for it, use the kubectl config set-context command in your terminal to set a context with your preferred cluster, user, and namespace.

Pods Containers Deployments Nodes

Nodes of your cluster have colored status marks next to their names:

Custom Resource Definitions (CRDs)

The Kubernetes Explorer lists all Custom Resource Definitions (CRDs) installed and available on your cluster:

What's next Get support

To submit feedback or report an issue in your IntelliJ IDE, go to

Tools

>

Cloud Code

>

Help / About

>

Submit feedback or report an issue

to report an issue on

GitHub

.


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