100% found this document useful (2 votes)
464 views241 pages

Kubernetes: How To Pass The Certified Kubernetes Administrator (CKA) Exam

The document discusses Kubernetes concepts and provides tutorials for passing the CKA certification exam and deploying Kubernetes clusters. It covers important Kubernetes topics like pods, deployments, services, config maps, and using kubectl commands. The tutorials are presented in Arabic and include lessons on Kubernetes architecture, concepts, YAML configuration, basic commands, and deploying and managing applications with deployments.

Uploaded by

yousef shaban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
464 views241 pages

Kubernetes: How To Pass The Certified Kubernetes Administrator (CKA) Exam

The document discusses Kubernetes concepts and provides tutorials for passing the CKA certification exam and deploying Kubernetes clusters. It covers important Kubernetes topics like pods, deployments, services, config maps, and using kubectl commands. The tutorials are presented in Arabic and include lessons on Kubernetes architecture, concepts, YAML configuration, basic commands, and deploying and managing applications with deployments.

Uploaded by

yousef shaban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 241

Kubernetes

How To Pass the Certified Kubernetes Administrator (CKA) Exam


https://medium.com/bb-tutorials-and-thoughts/how-to-pass-the-certified-kubernetes-
administrator-cka-exam-9e01f1aa93b8

Book:
Mastering Kubernetes Packt
manage highly available production-ready Kubernetes clusters-Packt

maximal udemy
stephen udemy

edward udemy

Kubernetes 1
important advance

Kubernetes 2
Kubernetes 3
Kubernetes 4
Kubernetes 5
Kubernetes 6
Kubernetes 7
Basic kubectl Commands | Kubernetes ‫ﺷﺮح‬

Kubernetes 8
Kubernetes 9
Writing Pods in Kubernetes | Kubernetes ‫ﺷﺮح‬

Kubernetes 10
Kubernetes 11
important command

Kubernetes 12
connect nginx tow rite code

Kubernetes 13
use another version nginx

Kubernetes 14
Labels and Selectors in Kubernetes | Kubernetes ‫ﺷﺮح‬

label show

Kubernetes 15
Kubernetes 16
show only pods that start name based on name

Kubernetes 17
Kubernetes 18
another type from selector

put label through config file YAML

Kubernetes 19
Kubernetes 20
Deployments in Kubernetes | Kubernetes ‫ﺷﺮح‬

important command deployment create more than things

Kubernetes 21
Kubernetes 22
scale up

Kubernetes 23
down scale

Kubernetes 24
Monolithic vs SOA vs Microservices | Kubernetes ‫ﺷﺮح‬

Kubernetes 25
SOA

Microservices

Kubernetes 26
Container definition important

Kubernetes 27
2nd Course: Arabic

Contlization

Kubernetes 28
Contlization

2.55K subscribers

Kubernetes Arabic Course | Lesson 1 | Course Intro


Kubernetes Arabic Course | Lesson 2 | What & Why Kubernetes

Kubernetes 29
Kubernetes Arabic Course | Lesson 3 | Kubernetes Architecture

Kubernetes 30
master node (server) or called Control Plane

worker >> agent for it called Kublet that used for communicate (API) with controller
master

proxy >> worker with outside world + published + distributes ips for container inside
worker

Kubernetes 31
Kubernetes Arabic Course | Lesson 4 - 1 | Deploy Kubernetes

Kubernetes 32
Kubernetes 33
Kubernetes 34
minikube

Kubernetes 35
based what are you used linux windwos hyperv

Kubernetes 36
while run via docker

change config ram cpu core

Kubernetes 37
third way >> that is preferred used ready environment

to start immediately

Kubernetes 38
Kubernetes 39
30 Dollar/month to build the lab
and get 100$ voucher gift

Kubernetes 40
Kubernetes Arabic Course | Lesson 4 - 2 | Deploy Kubernetes

fourth way

Kubernetes 41
connect master via putty

easy article to install Kubernetes on Linux

Kubernetes 42
kubrnets is docker image so you should be install docker as based for that

Kubernetes 43
Kubernetes 44
Kubernetes 45
Kubernetes Arabic Course | Lesson 5 - Part 1 | Kubernetes Concepts

Kubernetes 46
Pods as the like Virtual machine (Vmware)

framework inside it containers

service PRimary secondary service


Database and secondly logs

prefer for one service that handle as one IP for your each POD

best practice pod contain one container


2 container if second container service main container service

do not make more than service inside one pod

Kubernetes 47
problem scale and IP

each Pod with one IP

YML Config >> replica or scale rollback

Kubernetes 48
Service name + IP + Port

Kubernetes 49
namespace work on cluster level

resources + SEcurity

Kubernetes 50
compare between the desired state and the current state
automatically create … scheduler via controller

re-create pods

Kubernetes 51
Kubernetes Arabic Course | Lesson 5 - Part 2 | Kubernetes Concepts

Secret
CoreDNS
Node-Proxy
Replica set
Deployment
Daemon set

resolve names of pods between clusters levels


create that automatically

always installed inside Kubernetes work alone

proxy >> forward commands

facilitate communciation between pods with outer world side

Kubernetes 52
replicaSet >> self healing ,scalable , desired state

replica part from deployment

and used feature as shown on img

Deployment name + replica set name + pod name

Kubernetes 53
Daemon Set

monitor service

firewall service

based on desired nodes not desired state >> scale in and out

Kubernetes Arabic Course | Lesson 5 - Part 3 | Kubernetes Concepts

Kubernetes 54
Label
Annotation
Selector
Taints, Tolerations
ِAffinity
Config-map

Label

Kubernetes 55
affinity

to work with other machines

Kubernetes 56
taints and tolerations
control putting operation on nodes

example application high traffic service streaming

Kubernetes 57
config-map

used create pods

Kubernetes 58
Kubernetes Arabic Course | Lesson 6 | Kubernetes YAML

Kubernetes 59
version 1 mean core

Kubernetes 60
that based on your feature that will be used

Kubernetes 61
kind >> service need API version

Kubernetes 62
to see all kind

Kubernetes 63
important is not core

Kubernetes 64
metadata

Spec

Kubernetes 65
more info reference by kind + examples

Kubernetes 66
Kubernetes 67
Kubernetes 68
important GitHub have ready YAML Templates

Kubernetes 69
Kubernetes 70
ready YAML Configuration websites

hub.kub

Kubernetes 71
Kubernetes 72
Kubernetes Arabic Course | Lesson 7 | Kubernetes Basic Commands & Lab

references important

Kubernetes 73
Command kubectl >> give all commands

kubectl get —help

Kubernetes 74
Kubernetes 75
Kubernetes 76
create web server LAB

Kubernetes 77
website web server YAML

service YAML >> publish operation

selector name >> based label of meaning required pod

Kubernetes 78
create >> not exist

apply >> overwrite >> already exist

Kubernetes 79
Kubernetes Arabic Course | Lesson 8 | Kubernetes Deployment ( very
important )

Daily operation

Kubernetes 80
replica part from deployment

deployment automatically by default create replica set

deployment + replica + pods

Kubernetes 81
Label with selector >> Filter and define what do you need\

Kubernetes 82
pods >> deployment >> replica set

i need new web site version >> image

Kubernetes 83
rollout command

Kubernetes 84
so you see two version occur

why move replicate for new img

and why not remove version 1 >> due to maybe to back for it

Kubernetes 85
need to make rollback

undo - - to - revision= if have more version

you see replicate back for old versions

Kubernetes 86
Kubernetes Arabic Course | Lesson 9 - Part 1 | Kubernetes Network

all nodes can communicate with them

all pods communicate with them


maybe isolate ips (Security) so there are not need to routing

every pod has ip

every you makes img and updates you will create other names and IPs

discovery service work in backend responsible to solve this issue >> make all
updates that occur

CoreDNS but not solve all problems due to name different each update

Kubernetes 87
to solve this problem using service
third part CNI >>> cisco,, many companies introduce solutions

many many pods introduce the same services ? why communicate from them ?
solve that using service

every pod make service ( name + IP) that is constant

service responsible about publish containers for outside your nodes >> responsible
for communications

types of services

Cluster IP >> internally communciate you can not access from outside cluster so as
user that surf website do not need to see DBs >> used for backend services

Kubernetes 88
node Port >> 30000 - 32000
so you need to communicate with your web server need service IP with the node
port
every service container has unique ports based on cluster level

how to publish internal port with external

load balancer (rules) >> publish service using name or ip

to use that you should make ingress responsible about controling pods with
service

that does not exist >> tool as software to make it

as nginx plugins

Clouds has this exist solutions to make it load balancer (Ingress)

Kubernetes 89
Kubernetes Arabic Course | Lesson 9 - Part 2 | Kubernetes Network

Cluster IP >> internally pods inside cluster


DBs with web server

Kubernetes 90
NodePort
30000 -

Kubernetes 91
not as practical ip with port

Kubernetes 92
Load Balancer >> practical life

software

Kubernetes 93
Ingress (Full qualified name )

Kubernetes 94
examples

cluster ip

node port >> you need to make publish using service

Kubernetes 95
load balance YAML
but you need load balancer software (Ingress)

Kubernetes 96
Ingress
name host that will be communicate from outside
note important (serivceName) connect with app (selector) load balancer YAML

maybe to make more than host (websites) to communicate with loadbalancer

Kubernetes 97
nginx ingress controllers

Kubernetes Arabic Course | Lesson 10 | Kubernetes Storage

Kubernetes 98
Kubernetes 99
important

Container connect physical storage using (PVC > PV )

Kubernetes 100
storage class > advance Topics
make automation operation feature
sata

sdd
isci

AWS

Kubernetes 101
GCP

based on speed data rate Features


or companies that offer storage solutions

Kubernetes 102
examples
refernce

create or mount folder server

MountPath >> this is a folder that exists inside the container >> then connected with
the folder

Kubernetes 103
pv pvc

Kubernetes 104
connect container for storage

all one YAML but prefer divide for more than YAML

storage class: without PV due to Storage class create it automatically dynimaccly

Kubernetes 105
Kubernetes 106
Kubernetes 107
Kubernetes 108
delete

example github

Kubernetes 109
Companies Storage offer solutions

Kubernetes 110
Kubernetes Arabic Course | Lesson 11 | Kubernetes Security

poblem due to container are not isolated about OS

while virtual machine isolate based on OS


very important share kernal and storage

Kubernetes 111
Kubernetes 112
Kubernetes 113
Kubernetes 114
Kubernetes 115
Kubernetes 116
Kubernetes 117
Kubernetes 118
Kubernetes 119
Kubernetes 120
Kubernetes Arabic Course | Lesson 12 | Kubernetes Monitoring

K8s Monitoring Concepts


Logs and Tracing
Log Management
Monitoring tools
Capacity Planning, Charge back, Audit, Compliance.
Demo

Kubernetes 121
Kubernetes 122
Kubernetes 123
Kubernetes 124
Kubernetes 125
Kubernetes 126
kibana

Kubernetes 127
tracing

Kubernetes 128
weaveScope

Kubernetes 129
Kubernetes 130
Kubernetes Arabic Course | Lesson 13 | Kubernetes Platform
What & Why Container Platform?
Platform Components

Kubernetes 131
Platform Examples
Platform Market
Demo

Kubernetes 132
Kubernetes 133
Kubernetes 134
Kubernetes 135
Kubernetes Arabic Course | Lesson 14 | Kubernetes Next Step

Kubernetes 136
Kubernetes 137
3rd Course Arabic

Kubernetes in Arabic 01 - Containers / Docker

Kubernetes 138
important

Kubernetes in Arabic 02 - Docker 00

Kubernetes 139
Kubernetes in Arabic 03 - Docker 01

Kubernetes 140
Kubernetes in Arabic 04 - Containers Orchestration

Kubernetes 141
Kubernetes in Arabic 06 - PODs

pod small unit of kubernets

? said prveent tow operate as the same container from the same type inside pod but
you can define more container with differnt kinds

Kubernetes 142
Kubernetes in Arabic 07 - Working Environment (Kubeadm)

docker >> kubeaadm >> master itnilization

Kubernetes 143
Kubernetes 144
important

install Kuerbents using ansible >> Kubespray

Kubernetes in Arabic 08 - Working Environment (Minikube)

Kubernetes 145
Kubernetes in Arabic 09 - Working Environment (Cloud environment)

Azure Kube Cluster

Kubernetes 146
Javascipt

Kubernetes 147
Kubernetes 148
Kubernetes in Arabic 11 - PODs (Practice 02)

Kubernetes in Arabic 13 - Replicasets

Kubernetes 149
responsible about all pods (specific service)

Kubernetes 150
Kubernetes 151
Kubernetes 152
Kubernetes in Arabic 15 - Kubernetes Dashboard

Kubernetes 153
Kubernetes in Arabic 16 - Scaling up/down

Kubernetes 154
Kubernetes in Arabic 17 - Deployments

Rollback between versions

Kubernetes 155
Kubernetes in Arabic 18 - Deployments (Practice 01)

Kubernetes 156
Kubernetes 157
Kubernetes 158
Kubernetes in Arabic 20 - Services 01

Kubernetes 159
how to search find port of docker image

Kubernetes 160
any pod you can communicate with it using service

inside cluser using cluster IP

Kubernetes 161
Kubernetes in Arabic 21 - Services 02 (Practice)

Kubernetes 162
Kubernetes 163
need to understand

Kubernetes 164
Kubernetes in Arabic 22 - Services 03
access from outside

Kubernetes 165
target port >> container port that give from Docker Img through docker hub or github

Kubernetes 166
you are reach using (node ip + node port)

solve >> proxy server and load balancer + Ingress

Kubernetes 167
Kubernetes in Arabic 23 - Services 04 (Practice)

Kubernetes 168
how to get ip node

Kubernetes in Arabic 24 - Services 05


Load Balancer based on algorithm

more advance using ingress

Kubernetes in Arabic 25 - Services 06 (Practice)

Kubernetes 169
loadbalancer azure cloud

make you as shown external IP

Kubernetes 170
check logs

delete >> restart

now start

Kubernetes in Arabic 26 - Demo 01

Kubernetes 171
firstly : we will make 5 Deployments

secondly : think about services for communication


cluster IPs internally 2
node port external 2

Kubernetes 172
Kubernetes 173
redis

create service >> name ( important ) to use in operation comments

Kubernetes 174
postgre

Kubernetes 175
service for it

Kubernetes 176
important : based on Node js code Write your type >>
Developer documentation

Kubernetes 177
Kubernetes 178
Kubernetes 179
Kubernetes 180
Kubernetes 181
Kubernetes in Arabic 28 - Demo 03

Kubernetes in Arabic 29 - Namespaces 01


cluster i need to work for more than purpuses
using make vritula cluster on the cluster

namespace as virtual cluster

all your past work as default virtual cluster that installed automatically

Kubernetes 182
create namespace

Kubernetes 183
Kubernetes in Arabic 30 - Namespaces 02

important workflow

Kubernetes 184
tradionationally you can make 3 cluster
but you can work one cluster >> 3 virtual cluster ( names Spaces)

Kubernetes in Arabic 31 - Taints and Tolerations

based on
allowed for tainted node to enter inside toleration

before tolerance does not allowed to enter for tainted node >> possible maybe
based some properites of master

Kubernetes 185
Kubernetes in Arabic 32 - Taints and Tolerations (Practice)

does not allowed for any one does not have this property

Kubernetes 186
need to make for it toleration

Kubernetes 187
say for master to make sceduling >> give you all probabilites

Kubernetes 188
important to understand >> no exctue

Kubernetes 189
Kubernetes in Arabic 33 - Node Selector

pod work only on specific nodes

Kubernetes 190
Kubernetes in Arabic 34 - KataCoda Environment

Kubernetes in Arabic 35 - Environment Variables

Kubernetes 191
send as enviroment

Kubernetes 192
env

Kubernetes 193
maybe pass more than value

Kubernetes 194
Kubernetes in Arabic 36 - ConfigMaps

Kubernetes 195
Kubernetes 196
Kubernetes 197
Kubernetes in Arabic 37 - Secrets 01

Kubernetes 198
Kubernetes 199
Kubernetes in Arabic 38 - Secrets 02

Kubernetes 200
Kubernetes 201
Kubernetes in Arabic 39 - Commands and Arguments

Kubernetes 202
Kubernetes 203
important work image ubunto then give you command

Bash

Kubernetes 204
bash code

Kubernetes 205
Kubernetes in Arabic 40 - Liveness

if pod hanging but not crash >> so replica does not discover it

Kubernetes 206
test every 3 seconds

Kubernetes 207
Kubernetes 208
after 3 times not give response >> work restart

Kubernetes 209
tcp socket >> use for check database is work without any problem

Kubernetes in Arabic 41 - Readiness


pod is running but it is not ready >> 5 second program when boot >> go to appear
problem

Kubernetes 210
Kubernetes 211
Kubernetes 212
Kubernetes in Arabic 42 - State Persistence 01 - Volumes 01
if happen crash for pod that is not affect on Data that exist on volume

Kubernetes 213
the problem when work on the production stage : give you different data from each
pods

one of solution is NFS server

Mount on it

Kubernetes 214
Kubernetes 215
Kubernetes in Arabic 43 - State Persistence 02 - Volumes 02

you need to enter inside terminal of POD container

minikube ssh >> find exist mount for html file of nginx if happen any problem >> your
data is save

Kubernetes 216
Kubernetes 217
Kubernetes in Arabic 44 - State Persistence 03 - Volumes 03

Kubernetes 218
Kubernetes in Arabic 45 - State Persistence 04 - Persistent Volumes &
Persistent Volume Claims 01

Kubernetes 219
Kubernetes 220
Clain uses and reserve only one volume

retain >> due to still need your data that exist on the volume

recycle >> delete data inside volume but still volume you can use it

Kubernetes 221
Kubernetes in Arabic 46 - State Persistence 05 - Persistent Volumes &
Persistent Volume Claims 02

Kubernetes 222
Kubernetes 223
Kubernetes 224
Kubernetes 225
Kubernetes in Arabic 47 - Resource requirements

Kubernetes 226
Kubernetes in Arabic 48 - Installing Multi-nodes Kubernetes Cluster on Your
Local Machine
ansible

Vagrant

https://github.com/ZiyaadQasem/Kubernetes-nkube

Kubernetes 227
script >> install 3 VM + Kubernetes + master + Workers

Kubernetes 228
Kubernetes 229
Kubernetes in Arabic 49 - Network Policy

Kubernetes 230
Kubernetes 231
Kubernetes 232
check are able to access service from nginx 3

Kubernetes 233
Kubernetes in Arabic 50 - CKAD Certification Exam

19 Question 2 hour online

more than cluster and more than namespace


alias linux command to speed write command

Kubernetes 234
https://github.com/dgkanatsios/CKAD-exercises

Kubernetes in Arabic 51 - Service Account

Tokens

Kubernetes 235
Kubernetes 236
used this to communicate with cluster

how to communicate with API

Kubernetes 237
Kubernetes in Arabic 52 - Wrap-up
cronjob

devops pipeline

custome resourse

Kubernetes 238
4th Course Arabic

5th Course

Kubernetes Tutorial for Beginners [FULL COURSE in 4 Hours]


TechWorld with Nana

Kubernetes 239
Kubernetes 240
exams

AWS EKS Kubernetes-Masterclass | DevOps, Microservices

Kubernetes 241

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy