Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

F TD2000 DATASTRUCTURES 05 / kubernetes132 pod topology spread hard filter min domain skew

Compute hard topology-spread node eligibility using eligible domains, minDomains, match selectors and maxSkew.

POST https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-05/kubernetes132-pod-topology-spread-hard-filter-min-domain-skew

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": [
        "k8sSpread"
      ],
      "properties": {
        "k8sSpread": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "data",
            "claim"
          ],
          "properties": {
            "data": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "constraints",
                "existing_pods",
                "incoming_labels",
                "namespace",
                "nodes"
              ],
              "properties": {
                "constraints": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "affinity_policy",
                      "max_skew",
                      "min_domains",
                      "selector",
                      "taint_policy",
                      "topology_key"
                    ],
                    "properties": {
                      "affinity_policy": {
                        "type": "string",
                        "maxLength": 20000
                      },
                      "max_skew": {
                        "type": "number"
                      },
                      "min_domains": {
                        "type": "number"
                      },
                      "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"
                          }
                        }
                      },
                      "taint_policy": {
                        "type": "string",
                        "maxLength": 20000
                      },
                      "topology_key": {
                        "type": "string",
                        "maxLength": 20000
                      }
                    }
                  },
                  "maxItems": 512
                },
                "existing_pods": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "labels",
                      "namespace",
                      "node"
                    ],
                    "properties": {
                      "labels": {
                        "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
                      },
                      "namespace": {
                        "type": "number"
                      },
                      "node": {
                        "type": "number"
                      }
                    }
                  },
                  "maxItems": 512
                },
                "incoming_labels": {
                  "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
                },
                "namespace": {
                  "type": "number"
                },
                "nodes": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "affinity_matches",
                      "labels",
                      "taints_tolerated"
                    ],
                    "properties": {
                      "affinity_matches": {
                        "type": "boolean"
                      },
                      "labels": {
                        "$ref": "#/properties/artifact/%24defs/s_4dbca1a6673f"
                      },
                      "taints_tolerated": {
                        "type": "boolean"
                      }
                    }
                  },
                  "maxItems": 512
                }
              }
            },
            "claim": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "constraints",
                    "eligible_nodes"
                  ],
                  "properties": {
                    "constraints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "domain_counts",
                          "eligible_domains",
                          "minimum",
                          "nodes",
                          "self_match"
                        ],
                        "properties": {
                          "domain_counts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "count",
                                "domain"
                              ],
                              "properties": {
                                "count": {
                                  "type": "number"
                                },
                                "domain": {
                                  "type": "string",
                                  "maxLength": 20000
                                }
                              }
                            },
                            "maxItems": 512
                          },
                          "eligible_domains": {
                            "type": "number"
                          },
                          "minimum": {
                            "type": "number"
                          },
                          "nodes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "allowed",
                                "has_topology",
                                "skew"
                              ],
                              "properties": {
                                "allowed": {
                                  "type": "boolean"
                                },
                                "has_topology": {
                                  "type": "boolean"
                                },
                                "skew": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ]
                                }
                              }
                            },
                            "maxItems": 512
                          },
                          "self_match": {
                            "type": "number"
                          }
                        }
                      },
                      "maxItems": 512
                    },
                    "eligible_nodes": {
                      "type": "array",
                      "items": {
                        "type": "boolean"
                      },
                      "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 →