Hi All,
I need help to “List deployment images sorting by age”
For Example -o wide
getting below output
Used below command to get deployment name & image version, i need fetch age also along with the name & version.
kubectl get deployment -o=jsonpath=“{range .items[]}{‘\n’}{.metadata.name}{‘:\t’}{range .spec.template.spec.containers[]}{.image}{', '}{end}{end}” |cut -d’/’ -f 3| sort
api:2022.10,
batch:2022.13,
invite:2022.09,
I want to print age after version(api:2022.10,21d) sort by age