All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.core.v1.Affinity Maven / Gradle / Ivy

package io.k8s.api.core.v1;

/**
 * Affinity is a group of affinity scheduling rules.
 */
public class Affinity {
  public NodeAffinity nodeAffinity;

  public PodAffinity podAffinity;

  public PodAntiAffinity podAntiAffinity;

  public Affinity nodeAffinity(NodeAffinity nodeAffinity) {
    this.nodeAffinity = nodeAffinity;
    return this;
  }

  public Affinity podAffinity(PodAffinity podAffinity) {
    this.podAffinity = podAffinity;
    return this;
  }

  public Affinity podAntiAffinity(PodAntiAffinity podAntiAffinity) {
    this.podAntiAffinity = podAntiAffinity;
    return this;
  }

  public static Affinity affinity() {
    return new Affinity();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy