Kubernetes and other Docker tools
When we enabled Kubernetes, we selected the Deploy Docker Stacks to Kubernetes by default option. If you recall, in Chapter 8, Docker Swarm, we used the docker stack
command to launch our Docker Compose files in Docker Swarm and, as you might have guessed, running those same commands will now launch our stack in our Kubernetes cluster.
The Docker Compose file we used looked like the following:
version: '3' services: cluster: image: russmckendrick/cluster ports: - '80:80' deploy: replicas: 6 restart_policy: condition: on-failure placement: constraints: - node.role == worker
Before we launch the application on Kubernetes, we need to make a...