Welcome to the Linux Foundation Forum!

Managing State with Deployments kubectl --record unnown flag

Hi,

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",

Comments

  • Hi @GrzegorzArtichowicz,

    You can try replacing create with apply.

    Regards ,
    -Chris

  • Hi @chrispokorni

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

  • 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.

    Regards,
    -Chris

  • ok ,thank you

  • @GrzegorzArtichowicz said:
    Hi,

    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",

    I got the same error with the client version v1.21.4: 'Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.4"'
    there is no description of the error in 'kubectl create --help', but I found the 2 issues in the repo mentioned:
    https://github.com/kubernetes/kubernetes/issues/81289
    https://github.com/kubernetes/kubernetes/issues/40422
    They show me that --record will be deprecated.
    However, it is still in progress and should not affect in v1.21.4, I think this might be a bug?

  • @GrzegorzArtichowicz said:
    Hi,

    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",

    I got the same error with the client version v1.21.4: 'Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.4"'
    there is no description of the error in 'kubectl create --help', but I found the 2 issues in the repo mentioned:
    https://github.com/kubernetes/kubernetes/issues/81289
    https://github.com/kubernetes/kubernetes/issues/40422
    They show me that --record will be deprecated.
    However, it is still in progress and should not affect in v1.21.4, I think this might be a bug?

Categories

Upcoming Training