Argo Workflows · JSON Structure

Argo Workflows Io K8S Api Core V1 Affinity Structure

Affinity is a group of affinity scheduling rules.

Type: object Properties: 3
CNCFContainersData ProcessingKubernetesMachine LearningOpen SourceWorkflow Engine

io.k8s.api.core.v1.Affinity is a JSON Structure definition published by Argo Workflows, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

nodeAffinity podAffinity podAntiAffinity

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/argo-workflows/refs/heads/main/json-structure/argo-workflows-io-k8s-api-core-v1-affinity-structure.json",
  "name": "io.k8s.api.core.v1.Affinity",
  "description": "Affinity is a group of affinity scheduling rules.",
  "type": "object",
  "properties": {
    "nodeAffinity": {
      "description": "Describes node affinity scheduling rules for the pod.",
      "$ref": "#/definitions/io.k8s.api.core.v1.NodeAffinity"
    },
    "podAffinity": {
      "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).",
      "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinity"
    },
    "podAntiAffinity": {
      "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).",
      "$ref": "#/definitions/io.k8s.api.core.v1.PodAntiAffinity"
    }
  }
}