Kubernetes: Control Plane

Control Plane is the collection of components and process, that are responsible for managing a Kubernetes cluster. It makes the decision about the cluster and detects/responds to cluster events(like starting/restarting pods to maintain the desired deployment status). NOTE Control Plane is the brain of the Kubernetes cluster. It is not a single service, but Control … Read more

Kubernetes: Pods

As the first step, we take our application and create a Docker image. Once the image is created, it works as a portable runtime for our application. Now we can create a container from that image and run it in a Docker environment or in a container orchestration system like Kubernetes. What is a Pod? … Read more

PHP: __sleep() Magic Method

Summary Method Name __sleep() Type Magic Method Access Modifier public Parameters None Return Type array Purpose/Usage Returns an array of the property names of the classwhich should be included when an object of that class is serialized When Invoked Automatically invoked by the serialize() method. Limitations Can not serialize resource. Signature public function __sleep(): array … Read more

Kubernetes: Worker Node

Worker node provides runtime for the application. Pods run completely on the worker node. Worker Node Components Worker node components- Kubelet Kubelet is a service on the worker node, that communicates with the master node. Kubelet also connects the containers using a Container Runtime Interface(CRI). Container Runtime As a container orchestration system, Kubernetes does not … Read more

Kubernetes: Master Node

Master node provides connection to the Control Plane service, to the user. The Control Plane is responsible for managing and operating the whole Kubernetes cluster. Each Control Plane service run with independent role and performs separate operation. The user interface is usually command line interface, or web dashboard or API. Master Components Master node has … Read more

Kubernetes(K8s)

Kubernetes

Kubernetes is a Container Orchestration Engine(COE). Tools like Docker are great for containerizing an application. But these tools are mostly limited to containerizing, building images, and providing isolated runtime environments. Container orchestration allows us to run container workloads at scale in a production-like environment.

PHP: Cast to Float

PHP

Let’s see how we can cast/convert one data type to another data type in PHP. We can as one data type to another using one of the following- Casting operator and Functions.