Closed danail-branekov closed 3 years ago
We already apply annotations with labels that make it easy to retrieve the list of Pod
s belonging to an LRP
, similarly to what happens for StatefulSet
s or Deployment
s, which is enough for now. We might revisit this in the future.
The REST API can get the instances of an LRP which is currently not possible with the LRP custom resource.
We want to do this by introducing an
Instance
CRD, and create anInstance
resource per instance in theLRP
. The CRD should have the same fields as the JSON representation in the REST API, as long as it makes sense.