Welcome to the Linux Foundation Forum!

"Managing State with Deployments" commands not working 1.20.1

I am following the course here and I found out that several commands don't work in the kubernetes version we are using (1.20.1 as instructed to upgrade in some previous lessson)

For example it seems that --record is deprecated (link):

$ kubectl create deploy ghost --image=ghost --record
Error: unknown flag: --record

Also another error

$ kubectl rollout history deployment/ghost deployments "ghost":
error: there is no need to specify a resource type as a separate argument when passing arguments in resource/name form (e.g. 'kubectl get resource/' instead of 'kubectl get resource resource/'

I had to use instead:

kubectl rollout history deployment ghost

Comments

Sign In or Register to comment.