Getting error: error when creating “myfirstmavenpod.yml”: Pod in version “v1” cannot be handled as a Pod: json: cannot unmarshal object into Go struct field PodSpec.spec.containers of type []v1.Container
I have tried to create a Pod for maven
apiVersion : v1
kind : Pod
metadata :
name : maven
spec :
containers :
-name : maven
image : maven:4.0.0-alpha-13
New contributor
Cringe Shooter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.