3 min read
We can use python with Boto3 to retrieve the current On Demand price for a given instance type.
31/05/2022
Read more...3 min read
Shipwright is a framework that allow us to build container images and push them to remote registries from within a Kubernetes clusters. It supports popular tools such as Kaniko, Cloud Native Buildpacks and Buildah
30/05/2022
Read more...2 min read
Running on spot instances can save us a bunch of money on the cloud. It is based on long-term trends in supply and demand. You'll pay the Spot price that's in effect for the time period your instances are running. We can use boto3 to retrieve the current spot price:
26/05/2022
Read more...4 min read
If we have included a file that shouldn't be in a git repository, we can remove it from all the commits that it is present using filter-branch
25/05/2022
Read more...2 min read
When running spot instances, if AWS needs to reclaim that capacity (or if the current Spot price exceeds our bid price) we will receive a two minutes grace period to be able to save any data we need.
To check is we need to terminate our tasks on the spot instance we can use the instance's metadata
24/05/2022
Read more...2 min read
On a running instance we might want to be able to identify whether it is a spot or on demand instance. We can use awscli to identify it
23/05/2022
Read more...2 min read
If you are getting the HTTP 403 (Forbidden) error or the error message no basic auth credentials when trying to pull an image from ECR you are most likely doing so without logging into it first.
18/05/2022
Read more...4 min read
If you are trying to run a EKS cluster on a small subnet you might run out of IPs sooner that you might think. Every time it has to attach or detach IPs an API call needs to be made, so to avoid getting API calls throttled it pre-reserves some
16/05/2022
Read more...3 min read
In the same way we can use git blame to identify who and when has modified a specific line, with kubectl blame we'll be able to do the same to Kubernetes objects
13/05/2022
Read more...2 min read
One of the annoyances of running workloads in a JVM is taking into account that it has it's own DNS cache: It's easy to forgot about it when troubleshooting an issue so we might end up not understanding the problem at all
11/05/2022
Read more...