If you are like most people, and you end up searching the internet for the commands for Kubernetes and Linux, this is the blog for you.
By following some easy syntax rules, using kubectl is relatively straightforward. The CLI supports Windows, Mac and Linux operating systems; simply choose the appropriate install package to get started. Once the process is complete, you’re free to use kubectl. The controls available through the GUI are somewhat limited, so the CLI is geared more toward power users.
While learning Kubernetes, I ended up posting 14 or 15 sticky notes on my monitor to help me in those moments – but after a while, I could barely read what was on the screen. So finally, I created one small, easy-to-read piece of paper to reference when I or you – get stuck.
At the end, you can download of this blog, you can download the pdf version of these commonly used commands.
Table of Contents
What is Kubernetes?
Kubernetes is a platform for managing containerized workloads. Kubernetes orchestrates computing, networking and storage to provide a seamless portability across infrastructure providers. Confused? Check out Introduction to Kubernetes, our Kubernetes 101 crash course in all the fundamentals you need to know.
Take a Poll to See How You Compare With Others
Kubernetes Commonly Used Commands
Creating and Updating a Resource
Command Name
Description
kubectl create namespace [namespace-name]
Create a new namespace
kubectl create –f [filename]
Create a resource from a JSON or YAML file
kubectl apply -f [service-name].yaml
Create a new service with the definition contained in [service-name].yaml
kubectl apply -f [controller-name].yaml
Create a new replication controller with the definition contained in [controller-name].yaml
kubectl apply -f [directory-name]
Create the objects defined in any .yaml, .yml, or .json file in a directory
Thanks for reading. You can get more technology news, promos and free content in our popular email newsletter.
Over 50,000 people subscribe. Enter your email now and join us.
[…] Check out the most commonly used Kubernetes and Linux commands and download the pdf version for free… […]
Have questions or want to help the community? Share here.
We encourage our readers to share their unique experiences or ask questions to create a helpful and informative community. Our editors will also review every comment before publishing, ensuring our commitment to this community.
[…] Check out the most commonly used Kubernetes and Linux commands and download the pdf version for free… […]