You are viewing documentation for a release that is no longer maintainedSee documentation for the latest supported version 3 or the latest supported version 4.3.8.3. Pod トポロジー分散制約の例 以下の例は、Pod トポロジー設定分散制約の設定を示しています。 3.8.3.1. 単一 Pod トポロジー分散制約の例リンクのコピーリンクがクリップボードにコピーされました! このサンプル Pod 仕様は単一の Pod トポロジー分散制約を定義します。これは foo:bar というラベルが付いた Pod で一致し、ゾーン間で分散され、スキューの 1 を指定し、これらの要件を満たさない場合に Pod をスケジュールしません。 kind: Pod apiVersion: v1 metadata: name: my-pod labels: foo: bar spec: topologySpreadConstraints: - maxSkew: 1 topologyKey: topology.kubernetes.io/zone whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: foo: bar containers: - image: "docker.io/ocpqe/hello-pod" name: hello-pod kind: Pod apiVersion: v1 metadata: name: my-pod labels: foo: bar spec: topologySpreadConstraints: - maxSkew: 1 topologyKey: topology.kubernetes.io/zone whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: foo: bar containers: - image: "docker.io/ocpqe/hello-pod" name: hello-pod Copy to Clipboard Copied! Toggle word wrap Toggle overflow 戻る次へ