Controlplane $ kubectl create deployment nginx-deploy --image=nginx:1.16 --repli . . .

ajay jha:
controlplane $ kubectl create deployment nginx-deploy --image=nginx:1.16 --replicas=1 --record
Error: unknown flag: --record
See ‘kubectl create deployment --help’ for usage.

Basavraj Nilkanthe:
–record flag support for specific kubectl command for deployment… Not all

Tej_Singh_Rana:
--record won’t work with above command.

Basavraj Nilkanthe:
It’s works for patching like upgrading image

Tej_Singh_Rana:
Save it into a file then run kubectl create -f FILE-name.yaml --record

Basavraj Nilkanthe:
Ok