From the course: Google Cloud Associate Cloud Engineer Cert Prep

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Installing and configuring the CLI for Kubernetes (kubectl)

Installing and configuring the CLI for Kubernetes (kubectl) - Google Cloud Tutorial

From the course: Google Cloud Associate Cloud Engineer Cert Prep

Installing and configuring the CLI for Kubernetes (kubectl)

- Installing and configuring the CLI for Kubernetes or kubectl. So kubectl is a Kubernetes-specific command line tool for communicating with the cluster's control plane. So this is the CLI tool that you use to work with Kubernetes. It's where you do all kinds of Kubernetes commands and operations. So for general configuration, kubectl looks for a file named config in the HOME/.kube directory. The kubectl syntax is basically kubectl command and then type name followed by flags. So here's an example, kubectl get pod pod1. This is different from GCloud. GCloud, which is the Google Cloud CLI, will typically have, or not typically, will exclusively have always first the instance or the resource rather that you're doing the operation against. And at the end of the command, you have the actual operation, the actual command or the actual verb. In kubectl, the verb comes first. So what is the operation? So kubectl get and then you specify what it is that you're getting. So one syntax…

Contents