1

I'm wondering whether it's possible to get the time where my resource was updated?

e.g. via

$ kubectl describe deployment/myapp

I can see CreationTimestamp but I want to know the last time new changes were introduced. Also is it possible to get a diff between two rollouts? For example with

$ kubectl rollout history deployment/myapp

I want to check the configuration difference between current version and the previous one. Is there a way I can do that?

1
  • 1
    I think this thread has what you need. Link here => thread Commented Sep 20, 2021 at 5:29

1 Answer 1

2

Seems like these commands are sufficient

$ kubectl rollout history deployment myapp
$ kubectl rollout history deployment myapp --revision=76

and to check the difference (use diff or colordiff)

colordiff \
    <(kubectl rollout history deployment myapp --revision=76) \
    <(kubectl rollout history deployment myapp --revision=81)

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.