1

I'm using k8s javascript sdk to restart deployment. For restarting this answer gives a way to call API. Now I want to check the restart status, is there any existing API for me to get the status like I use kubectl rollout status -w deployment/some-of-my-deployments? I can get the deployment, but the status property is always True even it's being restarted.

    "status": {
        "availableReplicas": 1,
        "conditions": [
            {
                "lastTransitionTime": "2022-10-06T04:21:12Z",
                "lastUpdateTime": "2022-10-06T04:21:12Z",
                "message": "Deployment has minimum availability.",
                "reason": "MinimumReplicasAvailable",
                "status": "True",
                "type": "Available"
            },
            {
                "lastTransitionTime": "2022-10-06T03:50:13Z",
                "lastUpdateTime": "2022-10-19T08:19:44Z",
                "message": "",
                "reason": "ReplicaSetUpdated",
                "status": "True",
                "type": "Progressing"
            }
        ],
        "observedGeneration": 11,
        "readyReplicas": 1,
        "replicas": 2,
        "unavailableReplicas": 1,
        "updatedReplicas": 1
    }

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.