In the world of modern cloud-native applications, Kubernetes has become the go-to platform for container orchestration. Its ability to manage large-scale deployments, automate operations, and optimize resources is unmatched. However, the true power of Kubernetes lies in its redundancy mechanisms, which ensure that applications remain highly available, even in the face of failures. In this […]
Kubernetes
Deploy NGINX Ingress Controller on AKS Kubernetes using Helm
Step 1 – Allocate Public IP for Ingress The following command will allocate Public IP : az network public-ip create –resource-group [resource-group] –name [name for public IP] –sku Standard –allocation-method static –query publicIp.ipAddress -o tsv Step 2 – Install NGINX Ingress Controller using Helm An ingress controller, because it is a core component of Kubernetes, […]
CKA Sample questions with answers
Pre Setup Once you’ve gained access to your terminal it might be wise to spend ~1 minute to setup your environment. You could set these: alias k=kubectl # will already be pre-configured export do=”–dry-run=client -o yaml” # k create deploy nginx –image=nginx $do export now=”–force –grace-period 0″ # k delete pod x $now Vim The […]
kubectl autocomplete – Enabling and Using in Bash
Setting Up Kubectl Autocomplete in Your Shell Environment Setting up kubectl autocomplete depends on the shell you’re using. Here are the options for the most common shells. Remember to replace kubectl with your chosen alias if you’re using one. For instance, if you’ve aliased kubectl as k, replace kubectl with k in the scripts below. […]
kubectl Quick Reference
Kubectl autocomplete BASH source <(kubectl completion bash) # set up autocomplete in bash into the current shell, bash-completion package should be installed first. echo “source <(kubectl completion bash)” >> ~/.bashrc # add autocomplete permanently to your bash shell. You can also use a shorthand alias for kubectl that also works with completion: alias k=kubectl complete -o default […]
Kubectl Cheat Sheet
Introduction Kubernetes is a famous container orchestration tool that is very popular in modern software development. If you are using Kubernetes, you must have used Kubectl, which is the command line tool to manage your Kubernetes applications. This guide will walk you through the most frequently used commands for Kubectl. Not only will we discuss […]