Imperative command using --requests not working anymore on v 1.29.0 ?
Not all commands support the --record
flag. kubectl run, for example, does not.
Hmm, so we cannot create requests, limits for a pod with imperative command. It’s just that I saw the imperative command on old github repo thought that it might have been deprecated.
It is indeed deprecated for years now, but there’s no good substitute for it where it is used, so it has yet to be removed from K8s.
--record
is deprecated for years, but not removed
--requests
is completely removed. Why, I don’t know.
1 Like
Removed 2 years ago in 1.24 release kubectl: Remove deprecated run flags by mozillazg · Pull Request #108820 · kubernetes/kubernetes · GitHub
1 Like