RhodiumGroup / rhg_compute_tools

Tools for using compute.rhg.com and compute.impactlab.org
MIT License
1 stars 4 forks source link

add ability to inject arbitrary labels and tolerances to pod template #57

Closed delgadom closed 4 years ago

delgadom commented 4 years ago

Allow specifying pod labels & tolerances. Right now must be done with pod template, e.g.:

metadata:
  labels:
    key1: val1
    key2: val2
spec:
  tolerations:
  - effect: "NoSchedule"
    key: "k8s.dask.org_dedicated"
    operator: "Equal"
    value: "worker-highcpu"
  - effect: "NoSchedule"
    key: "k8s.dask.org/dedicated"
    operator: "Equal"
    value: "worker-highcpu"