Posts

Showing posts with the label service

Kubernetes Service

Image
               Why Service needs?             Kubernetes Pods are born and when they die, they are not resurrected. Using deployment, we can assign desired state of the pod. Deployment can create and destroy Pods dynamically. In cluster, If some set of Pods (call them "backends") provides functionality to other Pods (call them "frontends"). Frontends Pods find out and keeep track of which IP address to connect to, so that the frontend can use backend part of the the Pods.            In Kubernetes, a Service  defines a logical set of Pods and a Policy by which we can access them. A service in kubernetes is a REST object, similar to object. We can create POST service to create a new instance. The set of Pods targeted by a service is determined by a selector. Frontends Pods do not care which backend they use. While the actual Pods that compose the backend ...

Kubernetes API Overview

Image
                 Kubernetes API facilitate communication and operation between kubernetes component and external users. Most operation can be performed using the kubectl command line interface or other command line tool such as kubeadm.                 Kubernetes version, The version is set at API level rather then at the resource or field level. Kubernetes support multiple versions, each at different API path. for example, /api/v1 or /apis/extensions/vbeta1. Kubernetes API version has various levels like, Development level, Aplha lebevel, Beta level and Stable level. The naming convention to access this API is different on API level.                   Kubernetes API is specified by using /api/{apiVersion}. ApiVersion is anything mention as above.  Here, The term API group introduce to specify specific version. We can also enable and disab...

Kubernetes Components

Kubernetes Node: It is a worker machine. Kubernetes node may be vm machine and physical machine. The service on a node includes container runtime, kubelet and kube-proxy. Each node contains the services necessary to run  pods   and is managed by the master components. Kubernetes Cluster:   I t is a set of node machines for running applications. Kubernetes cluster consists of a set of worker machines, called nodes , that run containerized applications.   When you deploy Kubernetes, you get a cluster.   If you’re running Kubernetes, you’re running a cluster. Cl uster contains a worker node and a master node.    Worker nodes actually run the applications and workloads. M aster node is responsible for maintaining the desired state of the cluster. Kubernetes Container:   It is a packaged code along with dependencies needs at run time. Each container run is repeatable manner that means you get the same behavior wherever you run it. Container m...

Kubernetes objects

Image
         Kubernetes object use to represent the state of the cluster. Kubernetes object uses to represent the state of the cluster, what containerized application is running , the state of the running application, resource available for the running application. In brief, It represent the persistent entity in the kubernetes system.         Kubernetes object creation and state is achieved using the kubernetes API. kubectl command line interface is used to call kubernetes API. Kubernetes object uses to represent the desired state,       Object state is managed by using the control plane. Control plane continually and actively manage actual state to the desired state. The .yaml file provides information regarding object desired state and other information. This yaml file specify using kubectl command line interface.  When you use the Kubernetes API to create the object (either directly or via  kubectl ), that...

What Why and How Kubernetes

Introduction What is kubernetes ? Why need kubernetes ? How do I use kubernetes ?       1. Introduction.        It is basically container orchestration engine for automating deployment , scaling and management of containerized application. This project is hosted by the cloud native computing foundation.        Kubernetes provides different solution for managing life-cycle of container, especially in large environment. Kubernetes is being used, Provisioning and deployment of container Scaling up and removing container to spread application load evenly   Redundancy and availability of container  Movement of container from one host to another resource  Allocation of resource between container Configuration of application in relation to the container running on it. Health monitoring of container and host     2. What is kubernetes ?     Kubernetes is...

Kubernetes basic Concepts

Image
This basic concepts helps you to obtain deeper understanding of how kubernetes works. To get better understanding need knowledge of kubernetes API . Kubernetes APIS help to understand the below thing of cluster desired state like, what applications or other workloads you want to run what container images they use the number of replicas what network and disk resources you want to make available This thing achieved by creating kubernetes object using the kubernetes APIS. Object creation is achieved by using the command line interface kubectl. Once we set desired state, the Kubernetes Control Plane makes the cluster's current state match the desired state via the Pod  Life-cycle Event Generator. Kubernetes perform variety of task in Pod Life-cycle generation. Pod Life-cycle Event generation contains tasks. Starting and restarting the containers Scaling the number of given replicas Kubernetes consists of collection of process running on cluster. Kubern...