<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-is-kubectl--mofqyev2b" -->

---
title: What is Kubectl? | daily.dev
description: An introductory guide explains kubectl, the command-line tool used to communicate with and control Kubernetes clusters. It covers why kubectl is needed to...
canonical: https://daily.dev/posts/what-is-kubectl--mofqyev2b
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What is Kubectl? | daily.dev
og:description: An introductory guide explains kubectl, the command-line tool used to communicate with and control Kubernetes clusters. It covers why kubectl is needed to...
og:url: https://daily.dev/posts/what-is-kubectl--mofqyev2b
og:image: https://api.daily.dev/og/posts/MoFQyeV2B.png
og:image:alt: What is Kubectl?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What is Kubectl?

**[Teleport](https://daily.dev/sources/teleport)** · 10 min read · 0 upvotes · 0 comments

## Summary

An introductory guide explains kubectl, the command-line tool used to communicate with and control Kubernetes clusters. It covers why kubectl is needed to interact with the Kubernetes API server, installation and setup on Linux, Mac, and Windows, kubeconfig file management for handling multiple clusters, authentication methods (client certificates and bearer tokens including OIDC), and common use cases like listing, creating, updating, deleting, and debugging resources with commands such as kubectl get, create, apply, edit, delete, debug, logs, and cp.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://goteleport.com/blog/what-is-kubectl>

## Questions this post answers

### What is kubectl used for in Kubernetes?

Kubectl is the command-line tool used to communicate with and control Kubernetes clusters by making HTTP requests to the Kubernetes API server. It is used to create, manage, and delete resources, deploy containerized applications, inspect cluster state, and perform monitoring tasks such as viewing logs.

_Developers ramping up on Kubernetes tooling can track practical kubectl guides on daily.dev._

### What is the basic syntax for a kubectl command?

Kubectl commands follow the format kubectl [command] [TYPE] [NAME] [flags], where command is an action like get or delete, TYPE is the resource type such as pods or deployments, NAME optionally specifies a particular resource, and flags modify behavior like -f for file input or --port for port settings.

_Anyone building muscle memory with cluster commands can revisit syntax breakdowns like this on daily.dev._

### What are the two common ways to authenticate with kubectl in production?

The two common authentication methods are client certificates and bearer tokens. Client certificates use x509 certs signed either internally via a CertificateSigningRequest to the Kubernetes API server or externally by an enterprise PKI. Bearer tokens include service account tokens for long-running processes and OpenID Connect (OIDC) tokens, which support single sign-on and are well suited for large teams.

_Teams deciding how to secure cluster access can compare authentication approaches like these on daily.dev._

## Similar posts on daily.dev

- [A Beginner's Guide to Kubernetes](https://daily.dev/posts/a-beginner-s-guide-to-kubernetes-ucyxczyo1) · MetalBear · 0 upvotes · 0 comments
- [Kubernetes for developers: a complete beginner's guide](https://daily.dev/posts/kubernetes-for-developers-a-complete-beginner-s-guide-e5m8idnmp) · Flavio Copes · 2 upvotes · 0 comments
- [How to use Kubernetes](https://daily.dev/posts/how-to-use-kubernetes-zm9damhdz) · Serokell · 9 upvotes · 1 comments
- [Kubernetes Explained: A Beginner’s Guide to Containers, Pods, and Orchestration](https://daily.dev/posts/kubernetes-explained-a-beginner-s-guide-to-containers-pods-and-orchestration-ujbvoicme) · Medium · 4 upvotes · 0 comments

---

Tags: [#devops](https://daily.dev/tags/devops), [#kubernetes](https://daily.dev/tags/kubernetes), [#authentication](https://daily.dev/tags/authentication)

[View this post on daily.dev](https://daily.dev/posts/what-is-kubectl--mofqyev2b)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"What is Kubectl?","url":"https://daily.dev/posts/what-is-kubectl--mofqyev2b","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-is-kubectl--mofqyev2b"},"datePublished":"2026-08-23T12:19:09.620Z","dateModified":"2026-08-23T12:32:02.393Z","description":"An introductory guide explains kubectl, the command-line tool used to communicate with and control Kubernetes clusters. It covers why kubectl is needed to...","image":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","thumbnailUrl":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","isAccessibleForFree":true,"articleSection":"Teleport","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Teleport","logo":"https://media.daily.dev/image/upload/s--Dw-Bbw6O--/c_limit,w_256/f_auto,q_auto/v1787487494/logos/teleport?_a=BAMAMicg0","url":"https://daily.dev/sources/teleport"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/what-is-kubectl--mofqyev2b","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"devops,kubernetes,authentication","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Teleport","item":"https://daily.dev/sources/teleport"},{"@type":"ListItem","position":3,"name":"What is Kubectl?"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/what-is-kubectl--mofqyev2b#faq","mainEntity":[{"@type":"Question","name":"What is kubectl used for in Kubernetes?","acceptedAnswer":{"@type":"Answer","text":"Kubectl is the command-line tool used to communicate with and control Kubernetes clusters by making HTTP requests to the Kubernetes API server. It is used to create, manage, and delete resources, deploy containerized applications, inspect cluster state, and perform monitoring tasks such as viewing logs. Developers ramping up on Kubernetes tooling can track practical kubectl guides on daily.dev."}},{"@type":"Question","name":"What is the basic syntax for a kubectl command?","acceptedAnswer":{"@type":"Answer","text":"Kubectl commands follow the format kubectl [command] [TYPE] [NAME] [flags], where command is an action like get or delete, TYPE is the resource type such as pods or deployments, NAME optionally specifies a particular resource, and flags modify behavior like -f for file input or --port for port settings. Anyone building muscle memory with cluster commands can revisit syntax breakdowns like this on daily.dev."}},{"@type":"Question","name":"What are the two common ways to authenticate with kubectl in production?","acceptedAnswer":{"@type":"Answer","text":"The two common authentication methods are client certificates and bearer tokens. Client certificates use x509 certs signed either internally via a CertificateSigningRequest to the Kubernetes API server or externally by an enterprise PKI. Bearer tokens include service account tokens for long-running processes and OpenID Connect (OIDC) tokens, which support single sign-on and are well suited for large teams. Teams deciding how to secure cluster access can compare authentication approaches like these on daily.dev."}}]}
```

