Jack Wallen shows you how to deploy a service to a Docker Swarm cluster, so you can scale those apps up and down.
Interested in How to Deploy a Service to a Docker Swarm Cluster? Check out the step-by-step guide at TechRepublic: https://www.techrepublic.com/article/...
Read more like this: https://www.techrepublic.com/topic/de...
EDITOR'S NOTE: This content was originally published March 2023 on TechRepublic. This information may be outdated depending on time of viewing.
Footage courtesy of TechRepublic.
Commands:
Deploy an NGINX service:
docker service create --name nginx_test nginx
Check the status of the service, issue the command:
docker service ls
Deploy that service to all three nodes:
docker service create --replicas 3 --name nginx3nodes nginx
Verify the 3-node scale, issue the command:
docker service ls
Scale down that service to 2 cluster nodes with the command:
docker service scale nginx3nodes=2
Check the status with:
docker service ls
➤ OUR WEBSITE:
https://techrepublic.com/?utm_source=...
➤ MORE VIDEOS: https://techrepublic.com/videos/?utm_...
➤ LINKEDIN: / techrepublic
➤ TWITTER: / techrepublic
➤ FACEBOOK: / techrepublic
➤ FLIPBOARD: https://flipboard.com/@TechRepublic
Video Editor: staff
#TechRepublic #Podman #Sudo