not able to create deployment with record flag
please help
is also not working
Hello, @paidibhanu209
First of all, cluster is v1.19 and you are using deprecated flags (–generator=run-deployments/v1).
kubectl run
command, it creates a Pod not Deployment. (v1.18+)--record
flag will not work with kubectl create <resource-name> and kubectl run
.kubectl create deployment deploy1 --image=nginx -replicas=2
kubectl create deploy nginx --image=nginx --replicas=2 --dry-run=client -oyaml > f1.yaml
kubectl create -f f1.yaml --record