Chapter 3. Playing with Containers
In this chapter, we will cover the following topics:
- Scaling your containers
- Updating live containers
- Forwarding container ports
- Ensuring flexible usage of your containers
- Working with configuration files
Introduction
Talking about container management, you need to know some differences to compare it with application package management, such as rpm/dpkg, because you can run multiple containers on the same machine. You also need to care of the network port conflicts. This chapter covers how to update, scale, and launch the container application using Kubernetes.
Scaling your containers
Kubernetes has a scheduler to assign the container to the right node. In addition, you can easily scale out and scale down the number of containers. The Kubernetes scaling function will conduct the replication controller to adjust the number of containers.
Getting ready
Prepare the following YAML file, which is a simple replication controller to launch two nginx containers...