Unable to create yaml file while running a job

Hi everyone, Can anyoe help with advice ? I am currently enrolled on the CKA course and was attempting the exercise ' Run a job'. I tried creating a yaml file with the command 'kubectl create -f <file name> yaml ' and got  this response (error: the path "pi-job.yaml" does not exist). Any suggestions please? Thanks in advance, Ben.

  • post-author-pic
    Chad C
    12-03-2018

    Hey Ben! I'm sorry that you're having a bit of trouble there.  

    you are getting this error message because the file does not exist in the current directory.  You can specify the path after the 'kubectl create -f' or you can simply create the new yaml file in the current directory. 


    Please let us know how it goes! 

  • post-author-pic
    Adegbenga O
    12-04-2018

    Thanks! Problem solved.


Looking For Team Training?

Learn More