I have a number of docker hosts registered to Rancher environments that are defined for very specific purposes. For example some of them are for containers that support core infrastructure services and others are actually dedicate proxy/load balancers. So in this case we can consider these as ‘pets’.
In the general case I do NOT want anyone to deploy containers to these (other than the core DevOps team). These hosts have a label identifying their type (for arguments sake lets consider the label HOST_TYPE=INFRA). Today I advise our app teams to include a scheduling rule that declares HOST_TYPE != INFRA, and we keep an eye on things so in case anyone forgets we can apply the rule retrospectively and thus move the containers to the group of general use hosts.
But it would be more convenient if I could set some DEFAULT schuling rules which exclude deployment to any of the HOST_TYPE values that I want to keep for core services, so if no scheduling rule is applied explicitly the default one would still apply.
- Is this possible (and if so how) ?
- If it is possible, but another scheduling rule is applied to a stack/service, would the effect be cummulative (i.e. the DEFAULT rule would apply AND the additional rules specific to the stack).