skip to Main Content

I use kubectl apply -f nginx-deployment.yaml enter image description here

2

Answers


  1. Try giving the full path like C:YAMLnginx-service.yaml

    Login or Signup to reply.
  2. If the yaml file will be in .txt format then convert it into filename.yaml("in filename, name it as you like").Copy the content of the yaml text document("which creates the error") and paste the content in notepad++ and save the file as filename.yaml.

    Open the cmd, then command
    "docker login"
    after that, change the directory to yaml file located directory
    "cd directory path"

    here directory path is(C:UsersELCOTjob-portaljob portalfilename.yaml).Don’t consider this path,it’s an example.Type your system directory path .

    After changing the directory,command

    "kubectl create -f Filenae.yaml"
    it will load for few minutes, then it shows
    "Filename.apps/flask-node-deployment created" .

    The above mentioned instructions will works on windows platform ,not in MAC.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search