Atomic Habits

Learnings from 'Atomic Habits'

Yet again, this is not a book review, instead, go ahead and read the book Atomic Habits. I can’t recommend it enough. Written by James Clear, the book is not a theoretical text just talking about habits. Rather, it is a handbook that goes into the depth of how habits form, how they can be fostered, how human evolution hinders good habit formation in today’s world, etc. It gives you practical tips and actions on setting good habits and breaking bad ones. ...

October 26, 2021 · 11 min · Suraj Deshmukh
cafe

Unchanging Contexts and Degrading Productivity

Everything feels like work since the pandemic began. But the feeling has been more gnawing for the last couple of months. I have been working from home since 2018, but that was different! The work from home since the pandemic began is pretty adverse. The Tragedy of Lost Contexts Everything happens from the same place, things like work, seeing friends, entertainment, conferences, meetup, reading for fun, side project, etc. Earlier, there was a context and a place for each and everything. All of these other things have encroached on my workplace. Seeing friends in person is replaced by meeting them on Zoom. Watching movies in theater has been replaced by Netflix or Prime Video. Conferences had a special place for them in big convention centers in distant places. Now there are online platforms for organizing that too. A different company would host us for the meetup. There was a novelty in seeing new company spaces, a joy of talking tech for hours, that was fun. But now that too is only on Zoom, and it feels like yet another meeting. Cafes were for side projects and reading, but alas, that too happens in the same room, the same place. ...

September 11, 2021 · 4 min · Suraj Deshmukh
cert

Certified Kubernetes Security Specialist CKS exam tips

I recently cleared the CKS certification exam. So it is incumbent upon me to help you navigate this stress-bound exam. All the tips that are provided are either from accrued knowledge or from personal experience. Study Material During the study of CKA almost three years ago, I studied everything from the documentation. Back then, the documentation had less content hence it was comprehensible. But now, to go through the entire documentation was not practical. So I did the course by the killer.sh. This course is rich in information, exercises and tries to explain the basics. At the end of each section in the course, the trainer provides resources to read more on the given topic. I would recommend going through each and every resource provided. Don’t skip these. These resources will help you familiarize yourself with the Kubernetes documentation and support you during the exam. ...

September 4, 2021 · 5 min · Suraj Deshmukh
Sapiens

Learnings from 'Sapiens'

This is not a book review. Instead, this is a book recommendation. Please go ahead and buy this book. If you cannot afford to buy the book, please reach out to me. I will help you buy it⁕. This blog will give you a general idea of what this book is about. I will provide some background about the book and the author, followed by the notes from the book. ...

August 14, 2021 · 23 min · Suraj Deshmukh
Devices

Reading Devices

I use different devices for consuming content from disparate streams, even for books. This post discusses each method’s various pros and cons and what fits best in what kind of circumstance. You can refer to the table at the end of the post, where I have broken down each comparison aspect. Physical Books This method of consuming knowledge became prevalent with Gutenburg’s printing press. Getting a new book always gives you that dopamine rush since it has a sense of newness, new cover, the smell of paper, etc. ...

June 30, 2021 · 13 min · Suraj Deshmukh
Self Signed Certificates

How to 'automatically' generate a self-signed TLS certificate for Kubernetes Admission Webhook Servers?

The previous blog talked about generating self-signed certificates using a binary. It was a manual, cumbersome process where you had to generate the certificates using a tool, embed them into a Kubernetes Secret via Helm chart, and then use it. There is a better way of doing it! Which is what this blog will discuss. We will use a Helm chart, which has a couple of Kubernetes Jobs that generates the self-signed certificate, embed them in a Kubernetes Secret and finally update the ValidatingWebhookConfiguration or MutatingWebhookConfiguration of your choice. And that’s it. Life is simpler! ...

June 25, 2021 · 4 min · Suraj Deshmukh
Systemd

How to create a Systemd daemon quickly?

If you have a script or a binary and want to run it as a Systemd service, keep following. This blog will show you how to take any such executable code and run it using Systemd. Sure, you can do similar stuff using Docker as well. Although there are certain downsides of using Docker (alone) for managing the daemons. Systemd is good at log management on the node over a Docker container. If a container fails, you may or may not have access to the logs. Systemd provides constructs in managing dependencies quite well. And finally, you may not be using Docker on the machine, while Systemd is quite ubiquitous on any Linux. ...

June 19, 2021 · 2 min · Suraj Deshmukh
Golang and Kubernetes

How to import 'any' Kubernetes package into your project?

The client libraries that Kubernetes ships are meant to be imported, and you definitely don’t need this post explaining how to import them in your Golang based project. A simple go get ... should do the trick. But, what about the packages that are not meant to be imported? Or the ones that cannot be imported because of “technical reasons” ? Could you simply add them to your import statements in the .go file, and the go binary will do the right thing when you build the code? Well, let’s find that out! ...

May 30, 2021 · 5 min · Suraj Deshmukh
cert

How to generate a self-signed TLS certificate for Kubernetes Admission Webhook Servers?

UPDATE: There is a way to generate these certificates automatically. To find out how, read this post. If you are writing a webhook server for Kubernetes Admission Controllers like ValidatingAdmissionWebhooks or MutatingAdmissionWebhooks, you must expose it over HTTPS. To run these servers on HTTPS, you need TLS certificates. There are solutions available which you can use to solve this problem, first and foremost that comes to my mind is cert-manager. It is a great project and automates this problem. But it is an added dependency that you might have to keep running in your cluster. ...

May 21, 2021 · 2 min · Suraj Deshmukh
TPOM

Learnings from 'The Psychology of Money'

Synopsis of the Book The Psychology of Money, written by Morgan Housel, published in 2020, could be categorised under Psychology, Finance, and Nonfiction. The author wrote an article three years ago which got a lot of traffic hence decided to write a book out of it. Last year I saw that the book was recommended by many folks in my network and on Twitter. All of the recommenders were highly impressed by the book and spoke intensely of it. Now that I have finished it, I can understand why! ...

May 20, 2021 · 4 min · Suraj Deshmukh