Articles by Deepak Prasad
CPU, processors, core, threads - Explained in layman's terms
cpu socket, processor socket, core threads, socket vs core, lscpu command explained, how to check cpu cores, how to check cpu socket, linux cpu info, how to …
Kubernetes SecurityContext Explained with Practical YAML Examples
Learn Kubernetes SecurityContext with practical YAML examples for runAsUser, fsGroup, Linux capabilities, privileged containers, readOnlyRootFilesystem, and …
Kubernetes Sidecar Pattern Explained with Real Examples (Multi-Container Pod YAML)
Learn how Kubernetes sidecar containers work with practical multi-container Pod examples. Understand shared volumes, shared network namespaces, logging …
Kubernetes Secrets | Declare confidential data with examples
In this article we will explore the usage of Kubernetes Secrets using some real time scenarios and examples. Ideally we use Secrets to declare confidential
Python add to dictionary examples (7 different methods)
In this tutorial we have explored 7 different ways for python add to dictionary with examples. You can use dict.update(), dict[key] =value, dict.setdefault(), …
The Ultimate Guide to Python Argparse: No More Excuses!
Python argparse, supplies a host of features, making it easy to add argument handling to scripts. You can make arguments required or optional, have the user …
How to Clear System Storage on Mac Using Terminal (Advanced Guide)
Learn how to clear system storage on Mac using terminal commands. This advanced guide covers disk usage analysis, cache cleanup, log removal, and …
How to add label to running pod in Kubernetes
There are two methods to add label to running pod in Kubernetes. Using kubectl label pods or kubectl edit command to edit a resource object.
How to add or remove label from node in Kubernetes
Add a label to node. Remove a label from node. Use kubectl label node to add or remove a label from worker or controller nodes in Kubernetes Cluster
pam_faillock: lock user account after X failed login attempts in Linux
This pam_faillock module maintains a list of failed authentication attempts per user during a specified interval and locks the account in case there were more …
pam_tally2: lock user account after X failed login attempts in Linux
Use pam_tally2 to lock user account in Linux after X failed login attempts. Lock root and normal user, exclude users and group from being locked out.
5 effective ways to unlock user account in Linux
How to unlock the password for user account in Linux. If an account is locked due to login failure then use pam_tally2 or pam_fallock to unlock user account.
OpenSSL: Generate ECC Certificates for Apache Server
Elliptic Curve Cryptography (ECC) is an encryption technique that provides public-key encryption similar to RSA. We can generate ECC certificates using openssl …
Setup & verify Mutual TLS Authentication (MTLS) with OpenSSL
With mutual TLS authentication (MTLS), not only does the service side prove its identity by exposing a certificate, but also the clients prove their identity to …
10 simple ways to sort dictionary by key in Python
After Python 3.6, now dictionary can remember the order in which items are added. So we can easily sort dictionary by key using sorted() and many other modules …
