DataCater/datacater

Create new endpoint that provides the underlying Kubernetes Deployment

Closed this issue · 2 comments

Create a new endpoint that provides the underlying Kubernetes Deployment. This might be helpful to, for instance, investigate how many replicas of the Kubernetes Deployment are available.

This issue needs some conceptional work, so please feel free to share your thoughts in the comments

Quick drawing of the desired process:

Screenshot 2023-03-23 at 10 34 47

Response of kubectl get deploy core-dns -n kube-system from a local minikube:

apiVersion: apps/v1
kind: Deployment
metadata:
...
spec:
...
status:
  availableReplicas: 2
  conditions:
  - lastTransitionTime: "2023-01-12T10:37:00Z"
    lastUpdateTime: "2023-01-12T10:37:00Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2023-01-12T10:35:19Z"
    lastUpdateTime: "2023-01-12T10:37:03Z"
    message: ReplicaSet "coredns-b4854dd98" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 2
  readyReplicas: 2
  replicas: 2
  updatedReplicas: 2

This is issue was resolved by #194 Closed by mistake.