April 24, 2022
#CLI
#Kubernetes
So you’ve run a deployment and tried to check the pods and there’s nothing there!
kubectl get pods
Next step is to see what’s …
Read Article →
April 22, 2022
#CLI
#Kubernetes
If you need to force a redeploy of a deployment in Kubernetes , then you can use the rollout feature.
You may have an image that has been updated, but …
Read Article →
April 20, 2022
#CLI
#Kubernetes
If you need to restart a deployment in Kubernetes, perhaps because you would like to force a cycle of pods, then you can do the following:
Step 1 – …
Read Article →
April 18, 2022
#CLI
#Kubernetes
If you could like to a create a Horizontal Pod Autoscaler (hpa) in Kubernetes, then you could run the following:
Step 1 – Create a Deployment
If you …
Read Article →
April 17, 2022
#CLI
#Kubernetes
If you would like to test hpa, Horizontal Pod Autoscaling, or throw some chaos at a specific deployment in Kubernetes , then you could run a Load …
Read Article →
April 16, 2022
#CLI
#Kubernetes
If you would like to deploy a Metrics Server in Kubernetes , then you first need to create a namespace for it to live it, followed by installing the …
Read Article →
April 15, 2022
#AWS
#CLI
#Kubernetes
eksctl dramatically simplifies the creation of AWS EKS clusters, by providing a simple command-line interface.
Step 1 – Define a Cluster YAML
You can …
Read Article →
April 12, 2022
#CLI
#Kubernetes
If you want to automatically generate a manifest file in Kubernetes, you can do so by using the kubectl run command coupled with a --dry-run to output …
Read Article →
April 11, 2022
#CLI
#Kubernetes
If you need to sort a list of your pods by their CreationTimestamp, then do the following:
kubectl get pods -n kube-system …
Read Article →
April 10, 2022
#CLI
#Kubernetes
If you want to jump onto a particular Kubernetes Pod and run Bash within it, you can do so as follows:
kubectl exec -ti <pod_name> /bin/bash
You …
Read Article →
April 9, 2022
#CLI
#Kubernetes
If you would like to run shell commands inside of your Kubernetes cluster, then you can use the kubectl run command.
What the syntax looks like …
Read Article →
April 1, 2022
#AWS
#CLI
#Kubernetes
Ever searched for kubectl update config from aws eks and needed a quick result?
Step 1 – Validate AWS CLI
Make sure that you have valid AWS …
Read Article →
March 28, 2022
#AWS
#Kubernetes
#Terraform
If you have received the following error while trying to issue commands to kubectl:
Unable to connect to the server: dial tcp: lookup
Then it may be …
Read Article →
July 1, 2021
#Kubernetes
Once you have a Docker container, it is really simple to deploy containers to Kubernetes .
Generate a Deployment YAML
kubectl provides a fantastic way …
Read Article →
May 24, 2021
#Kubernetes
Once you have a secret in Kubernetes, if you know it’s name, you can delete it.
How to find the secret name
You can get the secret name as …
Read Article →
May 23, 2021
#Kubernetes
Secrets in Kubernetes are encoded using base64.
If you have the secret name, you can ask for its value. If not, then learn how to get a secret in …
Read Article →
May 22, 2021
#Kubernetes
You have created a secret, and would like to retrieve it.
Get a list of all the secrets in Kubernetes
kubectl get secrets
This will result in:
NAME …
Read Article →
May 21, 2021
#Kubernetes
Secrets allow applications to not hardcode usernames, passwords or additional information such as hostnames, IP addresses or other protected/sensitive …
Read Article →
May 16, 2021
#Kubernetes
Once you have deployed an application into Kubernetes , it will not be available to the outside world.
For this to be possible, you need to expose it …
Read Article →
May 15, 2021
#Kubernetes
If you find yourself needing to jump into a Kubernetes pod to either diagnose an issue, or run a particular command, you can use the bash connectivity …
Read Article →
May 14, 2021
#Kubernetes
In this comprehensive guide, you will learn how to effectively get and list environment variables within a Kubernetes pod . Understanding how to work …
Read Article →
May 13, 2021
#Kubernetes
In Kubernetes, a cluster is a group of machines working together.
By running the kubectl cluster-info command, we can find out high level information …
Read Article →
May 12, 2021
#Kubernetes
The kubeconfig file is the main configuration file that allows access to a Kubernetes cluster.
When you first create your Kubernetes cluster , you are …
Read Article →
August 26, 2020
#Kubernetes
Kubernetes secrets is a great way to store secret values that only Kubernetes can access in your hosted applications.
There are times when you might …
Read Article →