Ravindra BagaleCourses & study guides मराठी

Chapter 66: Docker and Kubernetes Together: Dockerfile to Registry to Cluster, Jenkins and Kompose

Ek app gheu: Dockerfile lihaycha, image build karaycha, registry madhe push karaycha aani Kubernetes var deploy karaycha. Nantar he sagla Jenkins pipeline madhe automatic karaycha aani docker-compose file Kompose ne Kubernetes YAML madhe badlaychi. Docker aani Kubernetes ekatra kase chaltat te ithe spasht hoil.

What you will learn in this chapter

  • Write a production-ready multi-stage Dockerfile for one real app
  • Tag images with versions and digests and push them to a local registry, Docker Hub and Amazon ECR
  • Pull private images in Kubernetes with imagePullSecrets and load images into kind
  • Deploy the image with a Deployment, Service, ConfigMap, Secret and probes
  • Automate build, test, push and deploy with a Jenkins pipeline
  • Convert a docker-compose file to Kubernetes manifests with Kompose and fix what it misses

Concepts in this chapter

  1. 66.1The app and its Dockerfile: from source code to a small, safe image
  2. 66.2Tag and push: local registry, Docker Hub and Amazon ECR
  3. 66.3Deploy the image to Kubernetes: config, secrets, probes and pull secrets
  4. 66.4Jenkins pipeline: build, test, push and deploy to Kubernetes
  5. 66.5Kompose: convert docker-compose.yml to Kubernetes and fix what it misses

The chapter recap is at the end of the last concept page.