How to Run a Load Generator on 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… Read More »How to Run a Load Generator on 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… Read More »How to Run a Load Generator on 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… Read More »How to Deploy a Metrics Server in 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 either… Read More »How to create an AWS EKS cluster using eksctl
If you have a Flask app that you would like packaged in a Docker container, then you can do the following. The steps outlined below… Read More »How to Dockerize a Flask App
You can use the aws cli to get the EKS cluster name, parse the first result and return it into a variable.
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… Read More »How to automatically generate a Manifests file in Kubernetes
If you need to sort a list of your pods by their CreationTimestamp, then do the following: A better way to specify the JSON path… Read More »How to Sort Pods by CreationTimestamp in Kubernetes
If you want to jump onto a particular Kubernetes Pod and run Bash within it, you can do so as follows: You can get the… Read More »How to Jump onto a Kubernetes Pod with Bash
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… Read More »How to run Shell Commands in a Kubernetes Cluster
If you find yourself in a position where you need to sync all emails from one account to another, then you can use the imapsync… Read More »How to Bulk Move All Email from One Account to Another using the CLI
You can download and install the AWS CLI on Linux as follows: Perform the install Verify the install
If you need to reboot, or restart the networking interface on your Mac, by using the CLI, then you can issue the following commands: Using… Read More »How to Reboot Networking on Mac from CLI
If you get the following error: fatal: unable to access <git>: SSL certificate problem: self signed certificate in certificate chain ..when trying to clone a… Read More »[Solved] fatal: unable to access
Ever needed to extract the files in a Docker container? Docker provides the save sub-command. Exporting Docker files into a Tar Archive The examples below… Read More »How to Extract the Files in a Docker Image
If you’ve run into this dreaded error: Error response from daemon: No such image: Then you can solve it as follows: Step 1 Perform a… Read More »[Solved] Error response from daemon: No such image: Docker
When you launch an EC2 instance, you can use the user-data to bootstrap a instance creation script. We can use the following code to start… Read More »How to Bootstrap a Web Server on AWS EC2
Ever searched for kubectl update config from aws eks and needed a quick result? Step 1 – Validate AWS CLI Make sure that you have… Read More »How to Update Kubectl Config from AWS EKS
Java provides many ways to generate random strings. 1. Using Apache Commons 2. Using Java 8 3. Using Plain Java
Python gives the ability to generate random strings out of the box, by using a combination of the string and random modules.
If you need to generate a random number or string in Terraform, then you can use the following: Then refer to it as:
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… Read More »[Solved] Unable to connect to the server: dial tcp: lookup with AWS EKS
Storing Terraform states files locally is not recommended. Instead you should use a backend such as as S3 from AWS. To do this, you just… Read More »How to Store Terraform State in AWS S3
If you have come across the following error: ZipArchive extension: disabled/not installed This just means that you are missing the php-zip module. How to fix the… Read More »[Solved] ZipArchive extension: disabled/not installed on Ubuntu
The challenge We have been searching for all the neighboring points in a Cartesian coordinate system. As we know each point in a coordinate system… Read More »Calculating Cartesian Neighbors Distance in Golang
The challenge The prime number sequence starts with: 2,3,5,7,11,13,17,19…. Notice that 2 is in position one. 3 occupies position two, which is a prime-numbered position. Similarly, 5, 11 and 17 also occupy prime-numbered positions. We shall… Read More »How to Calculate Dominant Primes in Golang