Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 27, 2022 09:19 pm GMT

Basic kubernetes

Kubernetes is a container orchestrator. Seeing the need for high scalability, kubernetes sees itself necessary, imagine the situation of having to manage many docker containers, kubernetes does it for you.

Configmap

Configmap is a file that injects configuration data into the container.

Basically, configmap is a single configuration file for more than one container, making it easier for you not to have the need to configure containers one by one.

Secrets

The secret saves password in kubernetes and retrieves it inside the container.

Load Balancer

Load balancer and a load balancer. It balances the load level between the containers so they don't get overloaded.

Service Discovery

Service discovery has a record of all containers and together with the load balance it delegates to which container the mass of data will go, its priority and the container that is healthier.

POD

POD is a unit, a wrapper that seals a container, ie the POD it wraps a container and seals it. By default a POD will always have a container inside, but there may be exceptional cases where you have more than one container inside a POD, but this is not advisable.

The POD it checks if the container is with enough quality to run the container.

Image description

ReplicaSet

The replicaset monitors the number of POds that are in the air at all times.

The replicaSet can be configured for example to run two PODs at all times, if a POD dies, the replicaSet will replicate that POD again from scratch.

The replicaSet also stores the container version.

Image description

Deployment

On top of the replicaSet we have the deployment. The deployment it guarantees that it can generate a new version, it also guarantees the replicaSet, it has the replicaSet inside that guarantees the amount of replica PODs.

Image description

Service

Image description

The service makes it possible for other people or systems to access the deployment, thereby accessing the PODs. It is external to the deployment.

In the service, a configuration is made from a label called selector.

An example of this is that the selector can be called app:front or app:back. That way we can diversify the selector for a front end or back end application for example.

NOTE: Each deployment will have its service.

Using the service, there are a few possibilities:

  • Generate an internal ip.
  • Generate an external ip, for external access.
  • Provide a door.

Round-robin is a randomization algorithm that works in conjunction with service.

Running local kubernetes with kind

Kind simulates a Kubernetes cluster using


Original Link: https://dev.to/israellopes/basic-kubernetes-5c0a

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To