datacater icon indicating copy to clipboard operation
datacater copied to clipboard

Create new endpoint that provides the underlying Kubernetes Deployment

Open olis1996 opened this issue 3 years ago • 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

olis1996 avatar Mar 22 '23 12:03 olis1996

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

hknlof avatar Mar 23 '23 09:03 hknlof

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

hknlof avatar Apr 27 '23 07:04 hknlof