I am getting the following error:
“Error from server (BadRequest): error when creating “my-own-deployment-definition.yaml”: Deployment in version “v1” cannot be handled as a Deployment: strict decoding error: unknown field “spec.template.metadata.lables””
Can someone please guide me, where am I making a mistake? The provided solution is running, but not mine (on the right). Thanks in advance
Hi @debdeepmitra
There’s a typo in your definition. It should be labels
and not lables
.
Also know how to make sense of these error messages. It is leading you to where the problem is
spec.template.metadata.lables
1 2 3 4
And unknown field
refers always to the last of the items separated by .
in this case lables
, because it does not know what that is - as Santosh as pointed out, it’s an incorrect spelling.
Ohhh, my bad! Thanks a lot to both of you. And yes, sure I will try to understand the errors and debug, it will be helpful for me as well.