How to Force Gitlab pipeline to fail on condition
if you have a conditional in your Gitlab pipeline stage that checks if something has succeeded or failed, then you can use this to pass or fail your …
Read Article →131 articles about cli development, tools, and best practices
if you have a conditional in your Gitlab pipeline stage that checks if something has succeeded or failed, then you can use this to pass or fail your …
Read Article →If you find yourself having the requirements to support both AWS CLI v1 and v2 simultaneously, then you can use the following conditional in Bash to …
Read Article →If you have tried calling the AWS CLI and got the following error:
Unknown options: --cli-binary-format
Then it is because you are using the AWS CLI …
If you need to check the version and flavour of the running Linux instance, then you can try the below commands:
cat /etc/os-release
lsb_release -a …
Read Article →
If you have tried to delete a Security Group, or VPC, or various other resources and you get the dreaded Network interface is in use by another …
We typically install an npm package as follows:
npm install <package_name>
But how do we uninstall an npm package?
If you need to count down a specific amount of time, say for example, when a token is set to expire, then a countdown timer will be useful.
If you want to rename a git branch, then you have a few options, dependent on the use-case.
git branch -a …
Read Article →
If you are using PowerShell and trying to run a terraform init, you may get an error as follows:
Error: error accessing remote module registry
Failed …
You have 3 options here:
tee with sedsed 's/Hello/Hi/g' file-name | tee file
> with sedsed …
Read Article →
In your source account create a customer-managed policy:
{
"Version": "2012-10-17",
"Statement": [
{ …
Read Article →
If you need to recursively find all symbolic links in a directory tree on a Mac, then you have a couple of options.
You could be trying to find them …
Read Article →You can follow the steps below to install App Mesh on AWS EKS (Kubernetes).
curl -o pre_upgrade_check.sh …
Read Article →
If you have tried to delete a Kubernetes namespace, and it has been hanging in ‘deleting’ for hours on end, it’s likely that you have …
Read Article →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 →If you get the following error:
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/ao/xxx.git' …
Read Article →
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 →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:
I have a parent directory containing multiple sub-directories. Each of these child directories is a different application and contains a Dockerfile.
I …
Read Article →If you could like to a create a Horizontal Pod Autoscaler (hpa) in Kubernetes, then you could run the following:
If you …
Read Article →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 …
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 →eksctl dramatically simplifies the creation of AWS EKS clusters, by providing a simple command-line interface.
You can …
Read Article →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 will help you …
Read Article →