makeporngreatagain.pro
yeahporn.top
hd xxx

Node Labels In Docker Swarm

2,386
  1. List your current nodes.
    docker node ls
  2. Add a label to a node.
    docker node update --label-add availability_zone=east <NODE_NAME>
    docker node update --label-add availability_zone=west <NODE_NAME>
  3. View existing labels with:
    docker node inspect --pretty <NODE_NAME>
  4. You can use --constraint when creating a service to restrict which nodes will be used to execute a service’s tasks.
    docker service create --name nginx-east --constraint node.labels.availability_zone==east --replicas 3 nginx
    docker service ps nginx-east
    docker service create --name nginx-west --constraint node.labels.availability_zone!=east --replicas 3 nginx
    docker service ps nginx-west
  5. Use --placement-pref to spread tasks evenly based on the value of a specific label.
    docker service create --name nginx-spread --placement-pref spread=node.labels.availability_zone --replicas 3 nginx
    docker service ps nginx-spread

Comments are closed, but trackbacks and pingbacks are open.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.