Project

General

Profile

Actions

Feature #44875

closed

mgr/rook: PlacementSpec to K8s POD scheduling conversion

Added by Sebastian Wagner about 4 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
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?

Actions #1

Updated by Sebastian Wagner about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Sebastian Wagner almost 4 years ago

  • Priority changed from Normal to High
Actions #3

Updated by Sebastian Wagner almost 4 years ago

  • Pull request ID set to 35542
Actions #4

Updated by Sebastian Wagner almost 4 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by Sebastian Wagner over 3 years ago

  • Status changed from Fix Under Review to New
  • Priority changed from High to Normal
  • Pull request ID deleted (35542)

was github pr 35542

Actions #6

Updated by Sebastian Wagner over 2 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF