Today, I learned about Pod Disruption Budgets (PDBs) in OpenShift. I discovered how PDBs can be used to ensure application availability during maintenance operations or unplanned failures. By setting the minimum number of pods required for an application to function, PDBs can help prevent service disruptions and maintain a high level of resilience.
Pod Disruption Budgets (PDBs) are Kubernetes objects that define the minimum number of pods required for an application to operate without interruption. These disruptions can be planned ( Voluntary Disruptions ) , like scaling or maintenance, or unplanned ( Involuntary Disruptions ), like hardware failures or system crashes.
Also, there are two main incidents involving pod disruptions :
You can define the pod disruption budget resource with either the minAvailable ( The minimum number of pods to be available, even during a voluntary disruption )
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: nginx-min
spec:
minAvailable: 2
selector:
matchLabels:
app: nginx
or the maxUnavailable (The maximum number of pods that can be unavailable during a voluntary disruption) attribute.
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: nginx-max
spec:
maxUnavailable: 1
selector:
matchLabels:
app: nginx
https://kubernetes.io/docs/tasks/run-application/configure-pdb/
Every day is an opportunity to learn something new, and the Red Hat Learning Community is a fantastic place to share and discover valuable insights. With modules on various tools and products, there's always something fresh to explore in Red Hat Learning portal. Let's continue to enrich our technical knowledge together.
What have you learned today?
What did I learn today? Journald does NOT, be default, save journal entries from
the current and previous boots.
Now, a little bit about journald.
Journald is a component of systemd.
Journald collects and manages journal entries - basically log information from applications and the kernel - from all parts of the Linux system.
By default, journald only stores journal entries for the current boot.
The option that controls whether journald saves previous boot records, is in the
configuration file /etc/systemd/journald.conf file. The option in that file is Storage=.
Setting the Storage= option to "persistent" will cause journald to store entries from the current and previous boots. This provides the opportunity to display only entries from
the current boot or, from both the current and previous boots.
What did I learn today - September 14, 2024?
I learned today that - unit files stored in/etc/systemd/system override those from
/lib/systemd/system that carry the same name.
The basic object that systemd manages and acts upon is a “unit”.
In systemd, a unit refers to any resource that the system knows how to operate on
and manage.
A unit is the primary object that the systemd tools know how to deal with.
A unit is essentially a configuration file.
The following are the types of unit files available to systemd:
Note: Units can be of many types, but the most common type is a “service”
(indicated by a unit file ending in .service).
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.