How to get an EKS Cluster name from an AWS Region
You can use the aws cli to get the EKS cluster name, parse the first result and return it into a variable.
EKS_CLUSTER_NAME=$(aws eks list-clusters …
Read Article →
131 articles about cli development, tools, and best practices
You can use the aws cli to get the EKS cluster name, parse the first result and return it into a variable.
EKS_CLUSTER_NAME=$(aws eks list-clusters …
Read Article →
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 …
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 →
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 →If you would like to run shell commands inside of your Kubernetes cluster, then you can use the kubectl run command.
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 command-line tool to …
You can download and install the AWS CLI on Linux as follows:
curl …
Read Article →
If you need to reboot, or restart the networking interface on your Mac, by using the CLI, then you can issue the following commands:
If you get the following error:
fatal: unable to access <git>: SSL certificate problem: self signed certificate in certificate chain
..when …
Read Article →Ever needed to extract the files in a Docker container?
Docker provides the save sub-command.
The examples …
Read Article →If you’ve run into this dreaded error:
Error response from daemon: No such image:
Then you can solve it as follows:
Perform a docker pull …
Ever searched for kubectl update config from aws eks and needed a quick result?
Make sure that you have valid AWS …
Read Article →If you have come across the following error:
ZipArchive extension: <strong>disabled/not installed</strong>
This just means that …
Read Article →When you first try and push to a git repository, you may get the following error message:
error: src refspec master does not match any.
error: failed …
Read Article →
You can use the AWS CLI to presign URLs so that objects in S3 can be shared publicly even if they are set as private.
Presigned URLs are great for …
Read Article →If you use aria2c to download files using the command-line, then you can also use it to download using multiple connections.
aria2c -x16 -s16 …
Read Article →
If you have a file on your machine, and you want to change the created/modified time/date stamp, then you can use the touch command.
touch -t …
Read Article →
Create a new AWS EC2 instance, and set the User Script to the following:
#!/bin/bash
sudo su
yum update -y
yum install -y httpd.x86_64
systemctl start …
Read Article →
If you need to query meta-data information from your running EC2 instance, you can curl the following location:
curl …
Read Article →
If you have just upgraded Ubuntu on your AWS g4dn instance and need to install/reinstall Cuda drivers for your Nvidia chipset, then you can run the …
Read Article →If you need to view a list of all the services that are either running or stopped (or both) on an Ubuntu server, then you can use the following …
Read Article →If you use Homebrew – and you probably should if you’re on a Mac – then you have probably installed various different applications and packages …
Read Article →If you try and run npm i and get Error: Cannot find module '../lib/cli.js', then you can easily fix the problem by running the following.
If you have recently upgraded your MacOS operating system, you may get the following error in your terminal when installing some Homebrew packages: …
Read Article →