Project

General

Profile

Feature #44875

Updated by Sebastian Wagner 6 months ago

https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#affinity-v1-core

orch -> k8s
<pre><code class="python">
from kubernetes.client import V1Affinity
def placement_spec_to_k8s(spec: PlacementSpec) -> Tuple[int, V1Affinity]:
"""
- node list
- labels
- count (?)
- all nodes?
- host glob?
"""
</code></pre>

k8s Rook CR -> orch:

#

1-
parse any CR we generated fro generate_k8s_placement()
# 2- show when we don't understand the placement

ceph orch ls should say "<opaque>" or "?" if we can't parse it
# 3- maybe parse other common CRs (e.g., ones from rook examples dir)


Anything that can be added to the PlacementSpec which is often used by Rook?

Back