Kubectl run nginx-deploy --image=nginx:1.16 --replicas=1 --record

Deepak Kumar:
kubectl run nginx-deploy --image=nginx:1.16 --replicas=1 --record

Oliver Radwell:
Use kubectl create deployment --image= --replicas=

MB:
It seems that record feature was removed in newer versions; try without it
https://github.com/kubernetes/kubernetes/issues/40422

Roshan Ranasinghe:
kubectl create deployment nginx-deploy --image=nginx:1.16 --replicas=1 – record ##careful space before record

Phani M:
@Roshan Ranasinghe the above command is not accepting record
The pod from the deployment is not coming up. It is treating record as an executable
Here is the error it says:

Warning  Failed     4s (x5 over 44s)  kubelet            Error: failed to start container "nginx": Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "record": executable file not found in $PATH: unknown

Roshan Ranasinghe:
@Phani M no clue above this… but it’s working for me

I am getting following error

Hi @karkarbhautik, remove the --record=true parameter. It has been deprecated.

Regards,
Vitor Jr.
KodeKloud Support

1 Like