Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

F TD2000 DATASTRUCTURES 05 / kubernetes132 node affinity taint toleration admission

Compute complete node eligibility from required/preferred node affinity and hard/soft taints with exact toleration matching.

POST https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-05/kubernetes132-node-affinity-taint-toleration-admission

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "artifact"
  ],
  "properties": {
    "artifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "k8sAffinity"
      ],
      "properties": {
        "k8sAffinity": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "data",
            "claim"
          ],
          "properties": {
            "data": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "node_selector",
                "nodes",
                "preferred_terms",
                "required_terms",
                "tolerations"
              ],
              "properties": {
                "node_selector": {
                  "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
                },
                "nodes": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "labels",
                      "taints"
                    ],
                    "properties": {
                      "labels": {
                        "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
                      },
                      "taints": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "effect",
                            "key",
                            "value"
                          ],
                          "properties": {
                            "effect": {
                              "type": "string",
                              "maxLength": 20000
                            },
                            "key": {
                              "type": "string",
                              "maxLength": 20000
                            },
                            "value": {
                              "type": "string",
                              "maxLength": 20000
                            }
                          }
                        },
                        "maxItems": 512
                      }
                    }
                  },
                  "maxItems": 512
                },
                "preferred_terms": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "selector",
                      "weight"
                    ],
                    "properties": {
                      "selector": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "expressions",
                          "match_labels"
                        ],
                        "properties": {
                          "expressions": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string",
                                  "maxLength": 20000
                                }
                              ]
                            },
                            "maxItems": 512
                          },
                          "match_labels": {
                            "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
                          }
                        }
                      },
                      "weight": {
                        "type": "number"
                      }
                    }
                  },
                  "maxItems": 512
                },
                "required_terms": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "expressions",
                      "match_labels"
                    ],
                    "properties": {
                      "expressions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "key",
                            "operator",
                            "values"
                          ],
                          "properties": {
                            "key": {
                              "type": "string",
                              "maxLength": 20000
                            },
                            "operator": {
                              "type": "string",
                              "maxLength": 20000
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 20000
                              },
                              "maxItems": 512
                            }
                          }
                        },
                        "maxItems": 512
                      },
                      "match_labels": {
                        "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
                      }
                    }
                  },
                  "maxItems": 512
                },
                "tolerations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "effect",
                      "key",
                      "operator",
                      "value"
                    ],
                    "properties": {
                      "effect": {
                        "type": "string",
                        "maxLength": 20000
                      },
                      "key": {
                        "type": "string",
                        "maxLength": 20000
                      },
                      "operator": {
                        "type": "string",
                        "maxLength": 20000
                      },
                      "value": {
                        "type": "string",
                        "maxLength": 20000
                      }
                    }
                  },
                  "maxItems": 512
                }
              }
            },
            "claim": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "nodes"
                  ],
                  "properties": {
                    "nodes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "affinity_match",
                          "eligible",
                          "preferred_weight",
                          "untolerated_hard",
                          "untolerated_soft"
                        ],
                        "properties": {
                          "affinity_match": {
                            "type": "boolean"
                          },
                          "eligible": {
                            "type": "boolean"
                          },
                          "preferred_weight": {
                            "type": "number"
                          },
                          "untolerated_hard": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "maxItems": 512
                          },
                          "untolerated_soft": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "maxItems": 512
                          }
                        }
                      },
                      "maxItems": 512
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "$defs": {
        "s_4dbca1a6673f": {
          "type": "object",
          "maxProperties": 32,
          "additionalProperties": {
            "type": "string",
            "maxLength": 256
          }
        }
      }
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →