Complete the code to initialize a Docker Swarm cluster on the manager node.
docker swarm [1]The command docker swarm init initializes a new Swarm cluster on the current node.
Complete the command to join a worker node to an existing Swarm cluster using the token.
docker swarm join --token [1] manager-node-ip:2377
The worker-token is used by worker nodes to join the swarm cluster.
Fix the error in the Kubernetes deployment command to apply a configuration file.
kubectl [1] -f deployment.yamlThe kubectl apply command applies changes from a configuration file to the cluster.
Fill both blanks to list all running pods in the default namespace with detailed info.
kubectl [1] pods [2]
The command kubectl get pods -o wide lists pods with extra details in the default namespace.
Fill all three blanks to create a Docker service with 3 replicas running nginx.
docker service [1] --replicas [2] [3]
The command docker service create --replicas 3 nginx creates a service with 3 nginx containers.