Project

General

Profile

Feature #44875

mgr/rook: PlacementSpec to K8s POD scheduling conversion

Added by Sebastian Wagner 7 months ago. Updated 4 months ago.

Status:
Fix Under Review
Priority:
High
Assignee:
-
Category:
mgr/rook
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

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

orch -> k8s

from kubernetes.client import V1Affinity
def placement_spec_to_k8s(spec: PlacementSpec) -> Tuple[int, V1Affinity]: 
    """ 
    - node list
    - labels
    - count (?)
    - all nodes?
    - host glob?
""" 

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?

History

#1 Updated by Sebastian Wagner 7 months ago

  • Description updated (diff)

#2 Updated by Sebastian Wagner 5 months ago

  • Priority changed from Normal to High

#3 Updated by Sebastian Wagner 4 months ago

  • Pull request ID set to 35542

#4 Updated by Sebastian Wagner 4 months ago

  • Status changed from New to Fix Under Review

Also available in: Atom PDF