0% found this document useful (0 votes)
206 views

Kubernetes III Deep Dive

This document provides an agenda and schedule for an upcoming DevNation Kubernetes Master Course series. The agenda covers topics such as why Kubernetes, installation, using kubectl, pods, replica sets, deployments, logs, apps as a service, building images, resource limits, rolling updates, liveness and readiness, environments and config maps, secrets, operators, volumes, taints and affinity, jobs and cron jobs, daemon sets, and stateful sets. The schedule lists upcoming master course sessions for different regions including Italy, France, Brazil, USA and Mexico at various dates and times in April and May 2021.

Uploaded by

Sai Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views

Kubernetes III Deep Dive

This document provides an agenda and schedule for an upcoming DevNation Kubernetes Master Course series. The agenda covers topics such as why Kubernetes, installation, using kubectl, pods, replica sets, deployments, logs, apps as a service, building images, resource limits, rolling updates, liveness and readiness, environments and config maps, secrets, operators, volumes, taints and affinity, jobs and cron jobs, daemon sets, and stateful sets. The schedule lists upcoming master course sessions for different regions including Italy, France, Brazil, USA and Mexico at various dates and times in April and May 2021.

Uploaded by

Sai Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 51

Kubernetes III Deep Dive

Homework dn.dev/kube-tutorial

bit.ly/kubemaster1
dn.dev/kubemaster3
1
@burrsutter

[email protected]
● Featured speaker at technology events around the globe
● Java Champion since 2005
● Former President of the Atlanta Java User Group
● Founded the DevNexus conference
● Always looking for technologies that enable developers to
deliver better software ever faster

dn.dev/kubemaster3
Burr Survey Link
https://www.surveymonkey.com/r/27RZRKY

dn.dev/kubemaster3
@yanaga

dn.dev/kubemaster3
Edson Survey Link
https://www.surveymonkey.com/r/G23D3KT

dn.dev/kubemaster3
@kamesh_sampath
● Email: [email protected]
● OpenSource Contributor for more than a decade
○ Minikube
○ Eclipse Che
○ Camel-K

● LinkedIn: Kamesh Sampath - Director of Developer


Experience - Red Hat
● Twitter: Kamesh Sampath (@kamesh_sampath)
● GitHub: kameshsampath (Kamesh Sampath) · GitHub

dn.dev/kubemaster3
Kamesh Survey Link
https://www.surveymonkey.com/r/YBVVCHZ

dn.dev/kubemaster3
Ana Mihalceanu

● @ammbra1508
● Currently Developer Advocate at Red Hat
● Java Champion and Certified Architect
● Co-founder of Bucharest Software Craftmanship Community
● Featured speaker at technology events around the globe
● Loving to solve challenging technical scenarios that involve
Java-based frameworks and multiple cloud providers

dn.dev/kubemaster3
Alex Soto (lordofthejars.com)

● @alexsotob
[email protected]
● Currently Red Hat’s Director of Developer Experience
● Featured speaker at technology events around the globe
● A Java Champion since 2017
● Writer, University Professor, Radio collaborator
● A big fan of testing and continuous delivery in 21st century

dn.dev/kubemaster3
Alex Survey Link
https://www.surveymonkey.com/r/G2BBYNH

dn.dev/kubemaster3
Sebastien Blanc
● @sebi2706
[email protected]
● Currently Red Hat’s Director of Developer Experience
● Featured speaker at technology events around the globe
● Java Champion
● Co-organizer of Riviera DEV
● Passion-Driven-Developer with one goal : share his passion
by giving talks that are pragmatic, fun and focused on live
coding

dn.dev/kubemaster3
Natale Vinto
$ oc whoami

Developer Advocate for OpenShift, helping people within


communities and customers achieve success with their
Kubernetes and Cloud Native strategy.

Love Free and Open Source software, Blues 🎸 and coffee ☕

@natalevinto

dn.dev/kubemaster3
Jason Dobies
+------------------------------+ +------------------------------------------+
| /\ | | Name: Jason the All Knowing |
| || {} | | Race: Human |
| || .--. | | Alignment: Chaotic Good |
| || /.--.\ | | |
| || |====| | | Stats: Strengths: |
| || |`::`| | | - Intelligence: 20 - Python |
| _||_ .-;`\..../`;_.-^-._ | | - Strength: 17 - OpenShift |
| /\\ / |...::..|` : `| | | - Charisma: 3 - Kubernetes |
| |:'\ | /'''::''| .:. | | | - Dexterity: 1 - Being Awesome |
| \ /\;-,/\ :: |..:::::..| | | Weaknesses: |
| \ <` > >._::_.| ':::::' | | | - Semicolons |
| `""` / ^^ | ':' | | | - Exiting Vi |
| | \ : / | | - Actual Pythons |
| | \ : / | | Character Backstory: |
| |___/\___|`-.:.-` | | - Twitter: jdob |
| \_ || _/ ` | | - GitHub: jdob |
| <_ >< _> | | - LinkedIn: jdob |
| | || | | | |
| | || | | | |
| _\.:||:./_ | | |
| /____/\____\ | | |
+------------------------------+ +------------------------------------------+

dn.dev/kubemaster2
@elderjava
eldermoraes.com/join
● Developer Advocate at Red Hat
● Java Champion
● Board Member at SouJava
● Featured speaker at developers conferences around the
world
● Helps Java developers to build and deliver awesome
applications

dn.dev/kubemaster2
@elderjava
youtube.eldermoraes.com
● Developer Advocate at Red Hat
● Java Champion
● Board Member at SouJava
● Featured speaker at developers conferences around the
world
● Helps Java developers to build and deliver awesome
applications

dn.dev/kubemaster2
Upcoming DevNation Schedule
Master Italy (Italian) France (French) Brazil (Portuguese) USA (English) Mexico (Spanish)
Course UTC: 8:00 UTC 11:00 UTC 15:00 UTC 16:00 UTC 18:00
Series Local 10:00 Local 13:00 Local 12:00 Local 12:00 Eastern Local 13:00
Central Standard

Apr 18 2021 Kubernetes II Quarkus


Kubernetes-native

Apr 27-28 2021 Red Hat Summit Red Hat Summit Red Hat Summit Red Hat Summit Red Hat Summit

May 2 2021 Quarkus Quarkus Quarkus


Kubernetes-native Kubernetes-native Kubernetes-native

May 9 2021 Kafka

May 11 2021 Kubernetes III

May 18 2021 Kafka Kafka Kafka Kafka

dn.dev/kubemaster3
Agenda
Part I Part II Part III
• Why Kubernetes • Building Images • Secrets
• What is Kubernetes • Resource Limits • Operators
• Installation • Rolling Updates • Volumes
• kubectl • Liveness & Readiness • Taints & Affinity
• Pod • Env & ConfigMap • Jobs & CronJobs
• ReplicaSet • DaemonSet
• Deployment • StatefulSets
• logs, stern
• Apps as a Service

dn.dev/kubemaster2
Where do you use Kubernetes?

dn.dev/kubemaster2
https://www.menti.com/i1x8bd5wza
Quick Recap
Kubernetes Deep Dive I & II

dn.dev/kubemaster3
DevOps Challenges for Multiple Containers
▪ How to scale?
▪ How to avoid port conflicts? Node Node Node
▪ How to manage them on multiple
hosts?
▪ What happens if a host has trouble?
▪ How to keep them running? Node Node Node
▪ How to update them?
▪ Rebuild Container Images?
Logger

dn.dev/kubemaster3
Kubernetes Terms
Pod Replicaset/ Service Persistent Label
Deployment Volume

✓ 1+ containers ✓ The Desired ✓ Grouping of ✓ Network ✓ Key/Value pairs


✓ Shared IP State - replicas, pods (acting as available storage associated with
pod template: one) has stable ✓ PVs and PVCs Kubernetes objects
✓ Shared storage (ephemeral) health checks, virtual IP and (env=production)
✓ Shared resources resources, DNS name
✓ Shared lifecycle image

dn.dev/kubemaster3
Secrets

dn.dev/kubemaster3
Secret: a piece of information that is only known by
one person or a few people and should not be told to
others.

dn.dev/kubemaster3
Kubernetes Cluster - Nodes

kubelet kubelet kubelet


Node Node Node
Primary

api

etcd

scheduler kubelet kubelet kubelet


Node Node Node
controllers

Istio
proxy

dn.dev/kubemaster3
● Kubernetes object that contains a small amount of
sensitive data.
● Injected as volume or environment variable.

dn.dev/kubemaster3
All YAMLs and base64

dn.dev/kubemaster3
Encryption Configuration

dn.dev/kubemaster3
Vaults provide full encryption

https

dn.dev/kubemaster3
Volumes

dn.dev/kubemaster3
The data in volumes is preserved across container restarts.
Lifecycle tied to a pod.

Networked storage. Data is persisted beyond the lifetime of


a pod.

Storage needs to be claimed.

Storage Class for dynamic provisioning of storage.

https://kubernetes.io/docs/concepts/storage/volumes/

dn.dev/kubemaster3
Pod PersistentVolume
PersistentVolume
Claim
volumeMounts:
/foo - storage: 10M
- storageClassName: sc
volumes:
pvc: claimName

StorageClass

dn.dev/kubemaster3
Taints & Affinity

dn.dev/kubemaster3
Taints & Tolerances
Taint - applied to a Kubernetes Node that signals the scheduler to
avoid or not schedule certain Pods.

Toleration - applied to a Pod definition and provides an exception


to the taint.

dn.dev/kubemaster3
Affinity & Anti-affinity
Node Affinity - rules that ban the node where pods can run, but
also to favor where they should run

Pod Affinity - indicate a group of pods should always be deployed


together on the same node (because of network communication,
shared storage, etc.)

dn.dev/kubemaster3
Jobs & CronJob

dn.dev/kubemaster3
DaemonSets

dn.dev/kubemaster3
Deployment

Node Node Node

Node Node Node

dn.dev/kubemaster3
DaemonSet

Node Node Node

Node Node Node

dn.dev/kubemaster3
StatefulSets

dn.dev/kubemaster3
Natale Survey Link
https://www.surveymonkey.com/r/G2BBYNH

dn.dev/kubemaster3
Additional Resources

dn.dev/kubemaster3
Download

bit.ly/istiobook

dn.dev/kubemaster3
Download

bit.ly/javamicroservicesbook

dn.dev/kubemaster3
Download

dn.dev/k8spatterns1

dn.dev/kubemaster3
Download

dn.dev/knative-cookbook

dn.dev/kubemaster3
Download

bit.ly/mono2microdb

dn.dev/kubemaster3
learn.openshift.com

dn.dev/kubemaster3
dn.dev/master

dn.dev/kubemaster3
Red Hat Summit 2021
https://www.redhat.com/en/summit/agenda

dn.dev/kubemaster3
Red Hat Summit Virtual Experience
Two-part virtual experience. One registration.

APRIL 27-28 JUNE 15-16

What to expect: What to expect:

❖ Keynotes from Red Hat thought leaders ❖ 7 channels of breakout sessions


❖ Exciting news and announcements ❖ Technical, deep-dive content
❖ Global customer and partner spotlights ❖ Even more access to Red Hat experts
❖ Live demo ❖ Customer stories and global content
❖ Access to Red Hat experts ❖ Demos, chat lounges & community
❖ Games and entertainment engagement

Visit our website and register now


dn.dev/kubemaster3 Read the blog for more information
The End

dn.dev/kubemaster3

You might also like