Useful Kubectl Aliases That Will Speed Up Your Coding

Useful Kubectl Aliases That Will Speed Up Your Coding

Useful Kubectl Aliases That Will Speed Up Your Coding.Reduce the time you spend typing full-length commands and prevent annoying typos when using the kubectl command

If you’re using the command line to interact with your Kubernetes cluster, you’re probably familiar with the kubectl command.

There are many cheatsheets available for kubectl that attempt to cover all of its available commands. While it’s very powerful, this command can be a bit cumbersome for some of the operations that you use on a daily basis. For example, the following command list contains only a small portion of the available commands of kubectl:

Image for post

Source: IntelliPaat blog

In this article, I’ll share with you some of the aliases I’ve created that have significantly sped up my interaction with K8s.

Note: I’m using the [fish shell_](https://fishshell.com/), but the aliases below can be easily modified to work with any other shell._

Open your config.fish using your favorite vi editor and let the fun begin.

K8s Contexts

If you’re working with K8s, you probably have multiple contexts that you switch between during your day. Having the following abbreviations will make your life a lot easier:

    alias devkube "kubectl config use-context kube-dev-context"
    alias stgkube "kubectl config use-context kube-stg-context"
    alias prdkube "kubectl config use-context kube-prd-context"
    ## your other contexts

kubernetes containers programming devops k8s

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

50+ Useful Kubernetes Tools for 2020 - Part 2

Our original Kubernetes tool list was so popular that we've curated another great list of tools to help you improve your functionality with the platform.

Ever Wondered Why We Use Containers In DevOps?

At some point we've all said the words, "But it works on my machine." It usually happens during testing or when you're trying to get a new project set up. Sometimes it happens when you pull down changes from an updated branch.

How to Extend your DevOps Strategy For Success in the Cloud?

DevOps and Cloud computing are joined at the hip, now that fact is well appreciated by the organizations that engaged in SaaS cloud and developed applications in the Cloud. During the COVID crisis period, most of the organizations have started using cloud computing services and implementing a cloud-first strategy to establish their remote operations. Similarly, the extended DevOps strategy will make the development process more agile with automated test cases.

Designing Highly Available Container Applications on Kubernetes

Designing Highly Available Container Applications on Kubernetes. With pod disruption budgets and anti-affinity. A multi-node Kubernetes cluster is highly available by design.

What Is DevOps and Is Enterprise DevOps Any Good?

What is DevOps? How are organizations transitioning to DevOps? Is it possible for organizations to shift to enterprise DevOps? Read more to find out!