3 Deploying to Kubernetes

 

This chapter covers

  • Kubernetes concepts related to specifying and hosting application deployments
  • Deploying a containerized application to Kubernetes on a cloud platform
  • Updating deployments with new versions of the application container
  • Running a version of Kubernetes locally for testing and development

In the previous chapter, we covered how to containerize your application. If you stopped there, you would have a portable, reproducible environment for your app, not to mention a convenient developer setup. However, you may have trouble scaling that app when you go to production.

For ultra-simple deployments where you don’t mind running one container per virtual machine (VM), you might be able to deploy containers to VMs directly and then scale your VMs as needed. You’d get a few of the advantages of containers, such as convenient packaging. However, if, like most, you have a number of different services to deploy, you’ll probably need something more flexible.

3.1 Kubernetes architecture

3.1.1 The Kubernetes cluster

3.1.2 Kubernetes objects

3.2 Deploying an application

3.2.1 Creating a cluster

3.2.2 Uploading your container

3.2.3 Deploying to Kubernetes

3.2.4 The PodSpec

3.2.5 Publishing your Service

3.2.6 Interacting with the Deployment

3.2.7 Updating your application

3.2.8 Cleaning up

3.3 Imperative commands

3.4 Local Kubernetes environments

3.4.1 Docker Desktop’s Kubernetes cluster

sitemap