Welcome to the Linux Foundation Forum!

Managing State with Deployments kubectl --record unnown flag


I have problem with flag --record ? I don't know whats the point.
kubectl create deploy ghost --image=ghost --record
Error: unknown flag: --record

kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4",


  • Hi @GrzegorzArtichowicz,

    You can try replacing create with apply.

    Regards ,

  • Hi @chrispokorni

    Yes I know but I would like to know why doesn't working :),excercise is in "imperative" way

  • Hi @GrzegorzArtichowicz,

    Features are often changing in Kubernetes as the software matures and it goes through several releases. You can check the documentation or the command line reference to see whether there is any explanation why the flag no longer works in the given context. If there are no references to it being deprecated or no longer supported (and it is expected to work), then this unexpected behavior could be reported as a bug on the Kubernetes github issues site.


  • ok ,thank you

Sign In or Register to comment.