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.
2
Answers
Try giving the full path like C:YAMLnginx-service.yaml
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.