Can create deployment command be recorded with --record? Am getting error with t . . .

Ramit Sharma:
Can create deployment command be recorded with --record? Am getting error with this flag,

Mayur Sharma:
@Ramit Sharma I think, you need to create the yaml file first and then record it like

kubectl create -f deployment.yaml --record