weixin_39665847 2020-11-29 16:52 采纳率: 0%
浏览 0

Use constraints not placement for k8s node affinity

Description of change

Instead of using placement (--to) for node affinity, use constraints instead. We support zones, affinity, and anti-affinity. Anti-affinity is done by prefixing the label key with "^". Labels for a given key are separated by "|". eg juju deploy foo --constraints="tags=key1=a|b|c,^key2=c|d|e zones=z1,z2"

QA steps

bootstrap k8s and deploy a charm to a node with some labels using constraints

该提问来源于开源项目:juju/juju

  • 写回答

7条回答 默认 最新

  • weixin_39665847 2020-11-29 16:52
    关注
    评论

报告相同问题?