SlideShare a Scribd company logo
Kubernetes
Kubernetes Object
NAMESPACE
POD
DEPLOYMENTS
SERVICE
INGRESS
SECRETS
CONFIGMAP
REPLICASET
Kubernetes Object
NAMESPACE
POD
DEPLOYMENTS
SERVICE
INGRESS
SECRETS
CONFIGMAP
REPLICASET
NameSpace
● Namespaces are a way to organize clusters into virtual sub-clusters — they can be helpful when different teams
or projects share a Kubernetes cluster.
● Any number of namespaces are supported within a cluster, each logically separated from others but with the ability to
communicate with each other
NameSpace
Kubernetes starts with four initial namespaces:
● default The default namespace for objects with no other namespace
● kube-system The namespace for objects created by the Kubernetes system
● kube-public This namespace is created automatically and is readable by all users (including those not
authenticated). This namespace is mostly reserved for cluster usage, in case that some resources should be visible
and readable publicly throughout the whole cluster. The public aspect of this namespace is only a convention, not a
requirement.
● kube-node-lease This namespace holds Lease objects associated with each node. Node leases allow the kubelet to
send heartbeats so that the control plane can detect node failure.
NameSpace
● Comman
#kubectl get namespaces
#kubectl get namespace
#kubectl get ns
#kubectl get ns -A
#kubectl create ns < NameSpaceName>
#kubectl delete ns <NameSpaceName>
WHAT IS POD ?
What is POD
● Smallest unit of Kubernetes object
● Pods are the rough equivalent of a machine instance (physical or virtual) to a container
● Abstraction over Container
● Usually one main application per pod
● SideCar or Helper container can be run together in same pod
● IP address will be in pod not in container
● Own IP address of each pod
● New IP address on re-creation
● Containers within pods can share their local storage and networking.
● pods are ephemeral
● Pods can be "tagged" with one or more labels, which can then be used to select and manage groups of pods in a single operation
COMMAND LINE FOR POD
#kubectl get pods
#kubectl run <podname> –image <image>
#kubectl run <podname> –image<image> -n <namespace>
#kubectl get pods -n <Namespace>
#kubectl get pods -A
#kubectl delete pod < podname>
Service
Service
In Kubernetes, a Service is an abstraction which defines a logical set of Pods and a policy by which to access them
(sometimes this pattern is called a micro-service).
The set of Pods targeted by a Service is usually determined by a selector.
● A Kubernetes Service that identifies a set of Pods using label selectors. Unless mentioned otherwise, Services are
assumed to have virtual IPs only routable within the cluster network.
● Service has 2 Functionality -
- Static IP
- Load Balancer
Service
-
Ingress
Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster. Traffic routing is controlled
by rules defined on the Ingress resource.
An Ingress may be configured to give Services externally-reachable URLs, load balance traffic, terminate SSL / TLS, and
offer name-based virtual hosting
Ingress
Deployments
Deployments
A Deployment provides declarative updates for Pods and ReplicaSets.
You describe a desired state in a Deployment, and the Deployment Controller changes the actual state to the desired state
at a controlled rate
Deployments
Replica Set
A ReplicaSet is defined with fields, including a selector that specifies how to identify Pods it can acquire, a number of
replicas indicating how many Pods it should be maintaining, and a pod template specifying the data of new Pods it should
create to meet the number of replicas criteria
secrets
A Secret is an object that contains a small amount of sensitive data such as a password, a token, or a key. Such information
might otherwise be put in a Pod specification or in a container image. Using a Secret means that you don't need to include
confidential data in your application code.
ConfigMap
A ConfigMap is an API object used to store non-confidential data in key-value pairs.
Pods can consume ConfigMaps as environment variables, command-line arguments, or as configuration files in a volume.

More Related Content

PDF
Kubernetes From Scratch .pdf
PDF
Intro to Kubernetes
PDF
Scaling Microservices with Kubernetes
PDF
DevOps in AWS with Kubernetes
PDF
Kubernetes/ EKS - 김광영 (AWS 솔루션즈 아키텍트)
PDF
prodops.io k8s presentation
PDF
Kubernetes Intro
PPTX
DevOps with Kubernetes
Kubernetes From Scratch .pdf
Intro to Kubernetes
Scaling Microservices with Kubernetes
DevOps in AWS with Kubernetes
Kubernetes/ EKS - 김광영 (AWS 솔루션즈 아키텍트)
prodops.io k8s presentation
Kubernetes Intro
DevOps with Kubernetes

Similar to What is POD and Kubernetes details Like as (20)

PPTX
Introduction to Kubernetes
PDF
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
PPTX
Kubernetes
PPTX
Introduction kubernetes 2017_12_24
PDF
DevJam 2019 - Introduction to Kubernetes
PDF
K8s in 2hours
PDF
Kubernetes Basics - ICP Workshop Batch II
PPTX
Introduction to kubernetes
PPTX
Kubernetes
PDF
Meetup 2023 - Gateway API.pdf
PPTX
A brief study on Kubernetes and its components
PPTX
Introduction to Kubernetes
PDF
Kubernetes overview and Exploitation
PDF
(Draft) Kubernetes - A Comprehensive Overview
PPTX
Kubernetes #1 intro
PDF
Kubernetes a comprehensive overview
PDF
WSO2Con US 2015 Kubernetes: a platform for automating deployment, scaling, an...
PDF
WSO2Con USA 2015: Keynote - Kubernetes – A Platform for Automating Deployment...
PDF
Kubernetes - A Comprehensive Overview
PDF
Kubernetes acomprehensiveoverview
Introduction to Kubernetes
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
Kubernetes
Introduction kubernetes 2017_12_24
DevJam 2019 - Introduction to Kubernetes
K8s in 2hours
Kubernetes Basics - ICP Workshop Batch II
Introduction to kubernetes
Kubernetes
Meetup 2023 - Gateway API.pdf
A brief study on Kubernetes and its components
Introduction to Kubernetes
Kubernetes overview and Exploitation
(Draft) Kubernetes - A Comprehensive Overview
Kubernetes #1 intro
Kubernetes a comprehensive overview
WSO2Con US 2015 Kubernetes: a platform for automating deployment, scaling, an...
WSO2Con USA 2015: Keynote - Kubernetes – A Platform for Automating Deployment...
Kubernetes - A Comprehensive Overview
Kubernetes acomprehensiveoverview
Ad

Recently uploaded (20)

PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Geodesy 1.pptx...............................................
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Sustainable Sites - Green Building Construction
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
PPT on Performance Review to get promotions
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Well-logging-methods_new................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
web development for engineering and engineering
Lecture Notes Electrical Wiring System Components
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
additive manufacturing of ss316l using mig welding
Geodesy 1.pptx...............................................
Mechanical Engineering MATERIALS Selection
Sustainable Sites - Green Building Construction
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Embodied AI: Ushering in the Next Era of Intelligent Systems
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPT on Performance Review to get promotions
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Well-logging-methods_new................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
web development for engineering and engineering
Ad

What is POD and Kubernetes details Like as

  • 4. NameSpace ● Namespaces are a way to organize clusters into virtual sub-clusters — they can be helpful when different teams or projects share a Kubernetes cluster. ● Any number of namespaces are supported within a cluster, each logically separated from others but with the ability to communicate with each other
  • 5. NameSpace Kubernetes starts with four initial namespaces: ● default The default namespace for objects with no other namespace ● kube-system The namespace for objects created by the Kubernetes system ● kube-public This namespace is created automatically and is readable by all users (including those not authenticated). This namespace is mostly reserved for cluster usage, in case that some resources should be visible and readable publicly throughout the whole cluster. The public aspect of this namespace is only a convention, not a requirement. ● kube-node-lease This namespace holds Lease objects associated with each node. Node leases allow the kubelet to send heartbeats so that the control plane can detect node failure.
  • 6. NameSpace ● Comman #kubectl get namespaces #kubectl get namespace #kubectl get ns #kubectl get ns -A #kubectl create ns < NameSpaceName> #kubectl delete ns <NameSpaceName>
  • 8. What is POD ● Smallest unit of Kubernetes object ● Pods are the rough equivalent of a machine instance (physical or virtual) to a container ● Abstraction over Container ● Usually one main application per pod ● SideCar or Helper container can be run together in same pod ● IP address will be in pod not in container ● Own IP address of each pod ● New IP address on re-creation ● Containers within pods can share their local storage and networking. ● pods are ephemeral ● Pods can be "tagged" with one or more labels, which can then be used to select and manage groups of pods in a single operation
  • 9. COMMAND LINE FOR POD #kubectl get pods #kubectl run <podname> –image <image> #kubectl run <podname> –image<image> -n <namespace> #kubectl get pods -n <Namespace> #kubectl get pods -A #kubectl delete pod < podname>
  • 11. Service In Kubernetes, a Service is an abstraction which defines a logical set of Pods and a policy by which to access them (sometimes this pattern is called a micro-service). The set of Pods targeted by a Service is usually determined by a selector. ● A Kubernetes Service that identifies a set of Pods using label selectors. Unless mentioned otherwise, Services are assumed to have virtual IPs only routable within the cluster network. ● Service has 2 Functionality - - Static IP - Load Balancer
  • 13. Ingress Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster. Traffic routing is controlled by rules defined on the Ingress resource. An Ingress may be configured to give Services externally-reachable URLs, load balance traffic, terminate SSL / TLS, and offer name-based virtual hosting
  • 16. Deployments A Deployment provides declarative updates for Pods and ReplicaSets. You describe a desired state in a Deployment, and the Deployment Controller changes the actual state to the desired state at a controlled rate
  • 18. Replica Set A ReplicaSet is defined with fields, including a selector that specifies how to identify Pods it can acquire, a number of replicas indicating how many Pods it should be maintaining, and a pod template specifying the data of new Pods it should create to meet the number of replicas criteria
  • 19. secrets A Secret is an object that contains a small amount of sensitive data such as a password, a token, or a key. Such information might otherwise be put in a Pod specification or in a container image. Using a Secret means that you don't need to include confidential data in your application code.
  • 20. ConfigMap A ConfigMap is an API object used to store non-confidential data in key-value pairs. Pods can consume ConfigMaps as environment variables, command-line arguments, or as configuration files in a volume.