Learn Kubernetes the Java way

A presentation at Devnexus 2023 in April 2023 in Atlanta, GA, USA by Oleg Šelajev

Slide 1

Slide 1

Learn Kubernetes the Java way

Slide 2

Slide 2

Oleg Šelajev Developer relations @shelajev github.com/shelajev oleg@atomicjar.com

Slide 3

Slide 3

Slide 4

Slide 4

OUR OPEN ROLES Technical Account Executive Staff Cloud Engineer CONTACT Sidney Miller @SidneyMiller2 Senior Product Designer sidney@atomicjar.com Senior Manager - Product Marketing atomicjar.com/careers Java Engineer WE’RE HIRING

Slide 5

Slide 5

Slide 6

Slide 6

Slide 7

Slide 7

Slide 8

Slide 8

Testcontainers-java • Created 7 years ago (Docker is 8 years old) • github.com/testcontainers/testcontainers-java • Uses docker-java API • Integrates with frameworks, like Spring, JUnit • Works with anything that runs in a Docker container

Slide 9

Slide 9

fi • Container lifecycle & cleanup • Container & service con guration • Integration with frameworks

Slide 10

Slide 10

Slide 11

Slide 11

testcontainers.com/modules/

Slide 12

Slide 12

testcontainers.com/modules/

Slide 13

Slide 13

Kubernetes in Java? K3S Lightweight Single-Binary Kubernetes

Slide 14

Slide 14

Show me the code

Slide 15

Slide 15

Can I run it?

Slide 16

Slide 16

Show me the code

Slide 17

Slide 17

Can I it talk to it?

Slide 18

Slide 18

Show me the code

Slide 19

Slide 19

Config or it didn’t happen!

Slide 20

Slide 20

Show me the code

Slide 21

Slide 21

Slide 22

Slide 22

How to inspect Kubernetes? keyvalue store

Slide 23

Slide 23

Show me the code

Slide 24

Slide 24

How to escape Kubernetes? 😱

Slide 25

Slide 25

Show me the code

Slide 26

Slide 26

Control Plane ■ API server ■ etcd ■ kube-controller-manager ■ kube-scheduler Data Plane ■ kubelet ■ kube-proxy https://kubernetes.io/docs/concepts/overview/components/

Slide 27

Slide 27

• Deployment • Service • ConfigMaps • Secrets • Pods https://kubernetes.io/docs/concepts/overview/components/

Slide 28

Slide 28

What next? https://kubernetes.io/docs/tutorials/kubernetes-basics https://github.com/kelseyhightower/kubernetes-the-hard-way www.testcontainers.org

Slide 29

Slide 29

Slide 30

Slide 30

Slide 31

Slide 31

Slide 32

Slide 32

Visit AtomicJar booth 25!