Docker and Kubernetes for Java Developers

Leverage the lethal combination of Docker and Kubernetes to automate deployment and management of Java applications

Docker and Kubernetes for Java Developers

Jaroslaw Krochmalski

Leverage the lethal combination of Docker and Kubernetes to automate deployment and management of Java applications
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781786468390
Paperback318 pages

Book Description

Imagine creating and testing Java EE applications on Apache Tomcat Server or Wildfly Application server in minutes along with deploying and managing Java applications swiftly. Sounds too good to be true? But you have a reason to cheer as such scenarios are only possible by leveraging Docker and Kubernetes.

This book will start by introducing Docker and delve deep into its networking and persistent storage concepts. You will then proceed to learn how to refactor monolith application into separate services by building an application and then packaging it into Docker containers. Next, you will create an image containing Java Enterprise Application and later run it using Docker. Moving on, the book will focus on Kubernetes and its features and you will learn to deploy a Java application to Kubernetes using Maven and monitor a Java application in production. By the end of the book, you will get hands-on with some more advanced topics to further extend your knowledge about Docker and Kubernetes.

Table of Contents

Chapter 1: Introduction to Docker
The idea behind Docker
Virtualization and containerization compared
Docker concepts - images and containers
Additional tools
Installing Docker
Summary
Chapter 2: Networking and Persistent Storage
Networking
Networking commands
Creating and inspecting a network
Connecting a container to the network
Exposing ports and mapping ports
Persistent storage
Volume-related commands
Creating a volume
Removing a volume
Volume drivers
Summary
Chapter 3: Working with Microservices
An introduction to microservices
Monolithic versus microservices
Maintaining data consistency
The Docker role
Kubernetes' role
When to use the microservice architecture
Summary
Chapter 4: Creating Java Microservices
Introduction to REST
REST in Java
Coding the Spring Boot microservice
Running the application
Making calls
Spring Initializr
Summary
Chapter 5: Creating Images with Java Applications
Dockerfile
Dockerfile instructions
Summary
Chapter 6: Running Containers with Java Applications
Starting and stopping containers
Container running modes
Monitoring containers
Restart policies
Runtime constraints on resources
Running with Maven
Summary
Chapter 7: Introduction to Kubernetes
Why do we need Kubernetes?
Basic Kubernetes concepts
Summary
Chapter 8: Using Kubernetes with Java
Installing Minikube
Installing kubectl
Deploying on the Kubernetes cluster
Minikube addons
Cleaning up
Summary
Chapter 9: Working with the Kubernetes API
API versioning
Authentication
Authorization
Admission control
Using the API
Swagger docs
Summary
Chapter 10: Deploying Java on Kubernetes in the Cloud
Benefits of using the cloud, Docker, and Kubernetes
Installing the tools
Configuring Amazon AWS
Creating an administrative user
Creating the cluster
Summary
Chapter 11: More Resources
Docker
Kubernetes

What You Will Learn

  • Package Java applications into Docker images
  • Understand the running of containers locally
  • Explore development and deployment options with Docker
  • Integrate Docker into Maven builds
  • Manage and monitor Java applications running on Kubernetes clusters
  • Create Continuous Delivery pipelines for Java applications deployed to Kubernetes

Authors

Table of Contents

Chapter 1: Introduction to Docker
The idea behind Docker
Virtualization and containerization compared
Docker concepts - images and containers
Additional tools
Installing Docker
Summary
Chapter 2: Networking and Persistent Storage
Networking
Networking commands
Creating and inspecting a network
Connecting a container to the network
Exposing ports and mapping ports
Persistent storage
Volume-related commands
Creating a volume
Removing a volume
Volume drivers
Summary
Chapter 3: Working with Microservices
An introduction to microservices
Monolithic versus microservices
Maintaining data consistency
The Docker role
Kubernetes' role
When to use the microservice architecture
Summary
Chapter 4: Creating Java Microservices
Introduction to REST
REST in Java
Coding the Spring Boot microservice
Running the application
Making calls
Spring Initializr
Summary
Chapter 5: Creating Images with Java Applications
Dockerfile
Dockerfile instructions
Summary
Chapter 6: Running Containers with Java Applications
Starting and stopping containers
Container running modes
Monitoring containers
Restart policies
Runtime constraints on resources
Running with Maven
Summary
Chapter 7: Introduction to Kubernetes
Why do we need Kubernetes?
Basic Kubernetes concepts
Summary
Chapter 8: Using Kubernetes with Java
Installing Minikube
Installing kubectl
Deploying on the Kubernetes cluster
Minikube addons
Cleaning up
Summary
Chapter 9: Working with the Kubernetes API
API versioning
Authentication
Authorization
Admission control
Using the API
Swagger docs
Summary
Chapter 10: Deploying Java on Kubernetes in the Cloud
Benefits of using the cloud, Docker, and Kubernetes
Installing the tools
Configuring Amazon AWS
Creating an administrative user
Creating the cluster
Summary
Chapter 11: More Resources
Docker
Kubernetes

Book Details

ISBN 139781786468390
Paperback318 pages
Read More

Read More Reviews

Recommended for You

DevOps: Puppet, Docker, and Kubernetes Book Cover
DevOps: Puppet, Docker, and Kubernetes
$ 79.99
$ 56.00
Docker Technologies for DevOps and Developers [Video] Book Cover
Docker Technologies for DevOps and Developers [Video]
$ 29.99
$ 25.50
A Software Delivery Pipeline for OpenStack and Kubernetes Book Cover
A Software Delivery Pipeline for OpenStack and Kubernetes
$ 39.99
$ 28.00
OSWorkflow: A guide for Java developers and architects to integrating open-source Business Process Management  Book Cover
OSWorkflow: A guide for Java developers and architects to integrating open-source Business Process Management
$ 29.99
$ 21.00
SharePoint for Developers: Building Hosted Add-Ins [Video] Book Cover
SharePoint for Developers: Building Hosted Add-Ins [Video]
$ 124.99
$ 106.25
JavaScript: Functional Programming for JavaScript Developers Book Cover
JavaScript: Functional Programming for JavaScript Developers
$ 63.99
$ 44.80