4-day Docker and Kubernetes Training
Linux and OpenShift guru Christian Posta shares his 4-day deep-dive training course on Docker and Kubernetes
Join the DZone community and get the full member experience.Join For Free
i just delivered a 4-day deep-dive training course on docker and kubernetes to a customer in atlanta. in true open-source spirit, i’d like to publish the source/slides and allow other people to benefit from it and contribute to making it better. kubernetes is such an awesome project, and i learned a lot by doing this training. if you’re interested in hearing how awesome kubernetes is, and how we’ve made it even better with openshift, get a hold of me (@christianposta)!
introductions: how to set up the environment, etc.
this course does not assume familiarity with any of the technologies on which we’re training. we do assume a basic understanding of what vms are as well as a little familiarity with linux (ie… “it’s not windows” seems a reasonable place to start). on the first-day we take a very high-level over of docker, describe what it is, why it’s caught fire, what things in your development and operations processes it can greatly improve. then we start to explain some of the concepts, get you started with docker on your laptop (windows/mac/linux), and walk you through some hands-on labs. later in the first day, we dig into concepts like images, links, volumes, how that’s all implemented, and the powerful things you can do with them.
day two builds on our understanding of linux containers: but while you’re consumed with the awesomeness of docker, we quickly burst that bubble and point out the areas that it lacks. using containers in any non-trivial environment requires more than what the docker format and api bring, so we talk about a little higher-level concepts like managing applications, abstracting away vms and infrastructure, designing cloud-native apps for failure and to be resilient, etc. then we talk about the benefits of those thoughts as well a the tough technical challenges.
we dig into kubernetes, how simple it is, and what powerful constructs are built on top of it, including clustering, application management, stateful cloud applications, resiliency to failures, etc. we cover all of the simple concepts like pods, labels, replication controllers, and services. we also show how to install kubernetes on your local machine (windows/mac/linux) and a lot of learn-by-example: ie, hands on guidance.
day three continues where we left off with day 2. we dig into slightly more complex kubernetes concepts like security, highly available masters, namespaces/grouping, logging, metrics collection, and dns addons. this gives us the fundamentals to introduce higher-level concepts like the different type of zero (or near-zero) downtime deployments like rolling updates/rollbacks, canary releases, blue/green deployments, a/b testing, etc.
these concepts naturally lead into discussions on ci/cd. we also dig into that with demos, explaining some of the "glue" tooling you can use to leverage some of your existing tooling and processes and combine with these tools to realize a ci/cd process.
all throughout, we talk about how great these technologies are as the base for a scalable, flexible, easy-to-consume cloud architecture. however, as we touch on throughout the course, for these technologies to be adopted in any meaningful way in large enterprises, there are considerations around networking, role-based access controls, security, registry, monitoring, etc that must be solved whether you take the onus on yourself or what not. we end day 4 talking about what openshift is and the parts of the puzzle it fills in, with a focus on what our enterprise customers expect from a set of services like this. we also talk at a little higher level, like building microservices and how the pressures and complexities of microserivces can be alleviated with these tools.
thanks to all that joined in person, and look forward to doing it again!
Published at DZone with permission of Christian Posta, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.