Kubernetes III Deep Dive
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
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
@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 27-28 2021 Red Hat Summit Red Hat Summit Red Hat Summit Red Hat Summit Red Hat Summit
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
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
api
etcd
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.
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.
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
dn.dev/kubemaster3
Jobs & CronJob
dn.dev/kubemaster3
DaemonSets
dn.dev/kubemaster3
Deployment
dn.dev/kubemaster3
DaemonSet
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.
dn.dev/kubemaster3