Chap3_ K8s Objects part 1.pptx kubernetes

kmaheee12 4 views 34 slides Aug 29, 2025
Slide 1
Slide 1 of 34
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34

About This Presentation

Kubernetes


Slide Content

Orchestration Environnement Année Universitaire 2023-2024 4_ArcTIC 1

Goals The objective of this chapter is to : Understand the basic concepts related to the administration of orchestration solution (Kubernetes). Practice some administration operation on Kubernetes cluster. 2

Outline YAML : Reminder Namespaces Setup Pods with YAML Replica Set Labels & Selectors Deployment Updates & Rollbacks 3

YAML : Reminder 4 YAML  (a recursive acronym for "YAML Ain't Markup Language") is a human-readable data-serialization language. It is commonly used for configuration files and in applications where data is being stored or transmitted.

YAML : Reminder 5

Namespaces 6 Namespaces   provides a mechanism for isolating groups of resources within a single cluster . Names of resources need to be unique within a namespace , but not across namespaces .  Namespaces are intended for use in environments with many users spread across multiple teams, or projects . Namespaces are a way to divide cluster resources between multiple users .

Kuberntes Namespaces 7

Namespaces 8 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. 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 .

Create namespaces 9 First option Second option

View resources in namespaces 10

Setting Default Namespace 11 Communication across namespaces

Setup Pods with YAML 12 Kubernetes uses YAML files as inputs for creating Kubernetes object like pod, services, deployments, etc. String Dictionary String

Assign Pods to Namespace 13 First option Second option

Replication Controllers 14 A replication controller is a Kubernetes object ensures that a specified number of replicas of a pod are running at all times. If pods exit or are deleted, the replica controller acts to instantiate more up to the desired number. If there are more running than desired, it deletes as many as necessary to match the number.

Replication Controllers : High availability 15

Replication Controllers : Load balancing & Scalling 16

Setup Replication Controllers 17 The definition of a replication controller consists mainly of: The number of replicas desired (which can be adjusted at runtime). A pod definition for creating a replicated pod.

Replication Controllers 18

Replication Controllers 19

ReplicaSet 20

Labels & Selectors 21

Why need we Template section? 22

Scale ReplicaSet 23

Replicaset Commandes 24

Deployment 25 A Kubernetes deployment is a resource object in Kubernetes that provides declarative updates to applications. A deployment allows you to describe an application’s life cycle, such as which images to use for the app, the number of pods there should be, and the way in which they should be updated. 

Deployment 26

Updates & Rollbacks 27 Users expect applications to be available all the time and developers are expected to deploy new versions of them several times a day. In Kubernetes this is done with rolling updates. Rolling updates allow Deployments' update to take place with zero downtime by incrementally updating Pods instances with new ones. The new Pods will be scheduled on Nodes with available resources.

Updates & Rollbacks 28 If the application instances are upgrated a new deployment revision is applied (rolloing aout) .

Deployment Strategy 29

Recrate Vs Rolling Update 30

Updates 31

Rollback 32

Deployment commands 33

Lab 2 : Paly with K8s 34 4_ArcTIC
Tags