Book Image

Docker Certified Associate (DCA): Exam Guide

By : Francisco Javier Ramírez Urea
Book Image

Docker Certified Associate (DCA): Exam Guide

By: Francisco Javier Ramírez Urea

Overview of this book

Developers have changed their deployment artifacts from application binaries to container images, and they now need to build container-based applications as containers are part of their new development workflow. This Docker book is designed to help you learn about the management and administrative tasks of the Containers as a Service (CaaS) platform. The book starts by getting you up and running with the key concepts of containers and microservices. You'll then cover different orchestration strategies and environments, along with exploring the Docker Enterprise platform. As you advance, the book will show you how to deploy secure, production-ready, container-based applications in Docker Enterprise environments. Later, you'll delve into each Docker Enterprise component and learn all about CaaS management. Throughout the book, you'll encounter important exam-specific topics, along with sample questions and detailed answers that will help you prepare effectively for the exam. By the end of this Docker containers book, you'll have learned how to efficiently deploy and manage container-based environments in production, and you will have the skills and knowledge you need to pass the DCA exam.
Table of Contents (22 chapters)
1
Section 1 - Key Container Concepts
8
Section 2 - Container Orchestration
12
Section 3 - Docker Enterprise
17
Section 4 - Preparing for the Docker Certified Associate Exam

Deploying orchestrated resources

Deploying workloads in Kubernetes is easy. We will use kubectl to specify the resources to be created and interact with kube-apiserver.

As mentioned earlier, we can use the command line to either use built-in generators or YAML files. Depending on the Kubernetes API version, some options may not be available, but we will assume Kubernetes 1.11 or higher.

In this chapter, all examples use Kubernetes 1.14 because it is the version available on the current Docker Enterprise release, 3.0, at the time of writing this book.

Let's start by creating a simple pod. We will review both options—imperative, using the command-line, and declarative, using YAML manifests.

Using the pod generator, we will run the kubectl run --generator=run-pod/v1 command:

$ kubectl run --generator=run-pod/v1 --image=nginx:alpine myfirstpod --labels=example=myfirstpod
pod/myfirstpod created

Using a YAML definition file, we will describe all of the required properties of the...