Tips for managing a docker swarm

I am wondering how others are managing their docker swarm nodes especially with the concepts of:

  • upgrades
  • **manual ** scaling up and down of node (automatic would be nice too but not for the scope of this question)
  • pruning (in my case I have a cronjob, but there were times that caused issues with timing.

In my I used my Terraform module https://registry.terraform.io/modules/trajano/swarm-aws/docker/

However, I find that the upgrade and scaling process to be quite manual. (I’m not confident to put it on a CI/CD pipeline yet)

Same question I asked in https://dockermastery.slack.com/archives/C4SF2R45D/p1571342397191000