If the current image is wrong/old/dne then I want this command to fail:

kubectl scale deploy gms --replicas=4

it just scales whatever is there - but I want it to check to ensure it's scaling the desired image:

kubectl scale deploy gms --replicas=4 --image="$name:$id"

is there a way to ensure that's scaling the desired image?


Your Answer

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

Browse other questions tagged or ask your own question.