Network Functions

Telcos (Telecommunication companies) deploy networks that have high availability, are scalable, and resilient covering entire countries. Components like routers, firewalls, and DHCP servers (called Network Functions) are the building blocks of such large network deployments. Traditionally, network functions were deployed on proprietary hardware with application-specific integrated circuits and installed on the telco’s premise (baremetal deployment). Such network functions are called Platform Network Functions (PNFs). PNF deployments present the following challenges: ...

June 7, 2023 · 6 min · Avnish
Lifecycle of a volume managed by CSI Plugin

Container Storage Interfaces (CSI)

There is a multitude of choices for storage solutions (Amazon S3, Ceph, Google Cloud Storage, etc.) and combined with the choices of container orchestrators (Kubernetes, Apache Mesos, Docker Swarm, etc.) the permutations are endless. A Container Storage Interface (CSI) plugin is implemented by the storage providers (Amazon, Google, IBM) as an interface to provision and mount volumes for workloads when requested by container orchestrators. The CSI plugin provisions the volume, procures it from the node hosting the container, and mounts it to the requesting container. It standardizes the process of allocating storage for containers between different orchestrators. ...

May 31, 2023 · 6 min · Avnish
Execution of CNI Plugins by Container Runtime

Container Network Interfaces (CNI)

Container runtimes allocate network namespaces for containers deployed on the host. A network interface (like docker0, bridge, or host) is configured inside the namespace to facilitate the communication with host, the internet, or other containers. The Container Network Interface (CNI) project provides specifications and libraries for implementing a plugin-based solution for managing network interfaces for containers. The runtime executes the CNI plugins provided as binary executable files. A network configuration is passed to the runtime as a JSON file. It contains the details of the CNI plugins and the network interfaces to be configured. ...

May 24, 2023 · 6 min · Avnish

Helm Charts

Package managers like dnf and apt increase the convenience of installing, updating, and maintaining applications on operating systems. For developers, a package manager provides a standardized way of packaging and distributing their applications. Helm is a package manager for Kubernetes. It is implemented in Go and installed as a binary helm. It interacts with the Kubernetes cluster using Kubernetes API. Charts Helm distributes Kubernetes-based applications in a format called Chart. Charts can deploy all kinds of Kubernetes resources such as Deployments, Pods, Services, Persistent Volumes, etc. ...

May 16, 2023 · 7 min · Avnish

Operator SDK and Bundle Images

An Operator Bundle Image (OBI) is created to package custom resources and metadata associated with an operator. It’s like any other container image only difference is that it couldn’t be executed but it could be distributed through an OCI-compliant image registry. Contents of a bundle image are: Kubernetes Custom Resource Definitions (CRDs) ClusterServiceVersion (CSV) Specification of operator’s dependencies Operator metadata like its name, version, channels, etc. The control loops associated with the operator are defined in its Controller Manager. It is an executable that contains one or more custom controllers. ...

May 10, 2023 · 7 min · Avnish

Operators on OpenShift

OpenShift provides an Operators section in its web console UI for the installation and management of operators on the cluster. OperatorHub The OperatorHub is an interface for searching and installing operators. It has the following categories of operators: Red Hat Operators: Operators developed and supported by Red Hat. Example: Red Hat Quay Operator Certified Operators: Operators listed by Red Hat’s Independent Software Vendors (ISVs). Example: CockroachDB Operator Red Hat Marketplace Operators: Applications purchased from Red Hat Marketplace available as Operators. Example: Dynatrace Operator Community Operators: Default catalog of Operators maintained by their communities. Example: Infispan Operator OperatorHub fetches the catalog data from an operator installed by default on all clusters called Marketplace Operator. ...

May 3, 2023 · 5 min · Avnish

Kubernetes Operators

Applications built to be deployed on Kubernetes could be packaged as Operators. Operators automate the process of installation, updates, and management of the application. These automations are defined by developers based on the application’s business logic. An Operator consists of: Custom Resources (CRs) required by the application Custom controller for managing these CRs Control Loop A control loop is an infinite loop for monitoring the state of a system. If the desired state of the system is different from its current state then the control loop makes changes to the system until it reaches its desired state. ...

May 1, 2023 · 4 min · Avnish
Building container images from Containerfile

Building Container Images

Public registries provide container images for most use cases but they might not cover all of them. That’s why container engines such as Podman & Docker and CLI tools like buildah provide utilities for creating custom container images. The build steps are written in a plaintext file called Containerfile and parsed by container engines (or buildah) during the build process. 1 2 3 4 5 6 7 8 # Containerfile FROM node:18-alpine LABEL version="1.0" WORKDIR /app COPY . . RUN yarn install --production CMD ["node", "src/index.js"] EXPOSE 3000 Containerfile Instructions Steps inside the containerfile are defined using instructions such as FROM, RUN, ADD, COPY, etc. Container Engines go through the containerfile line-by-line and perform each step, stacking a new image layer on top of the previous one. ...

March 20, 2023 · 6 min · Avnish
Workflow of container images

Container Images

A container image is a static file that contains the necessary resources (packages, configuration, other dependencies) required to provision a container. It consists of multiple layered-filesystems and a Manifest file, containing its metadata. Open Container Initiative (OCI) Specification Open Container Initiative was established by The Linux Foundation in 2015 to provide Runtime specification Image specification Distribution specification for container images. A container image created from OCI Image specification should have ...

March 17, 2023 · 6 min · Avnish
Lifecycle of a container

Container Lifecycle

Container Engines like Podman and Docker provide GUI and CLI utilities for managing the state of containers. They also provide features such as container image management, metrics, logging, and debugging tools. The examples in this article use Podman but CLI commands are mostly interoperable with Docker. We can install Podman on your system by following the steps in Podman Installation Instructions. Podman also provides a graphical interface for managing containers, images, and other resources called Podman Desktop. ...

February 10, 2023 · 7 min · Avnish