Hey guys have a question on the labs im on the kub for absolute beginners and im . . .

Joshua Norton:
Hey guys have a question on the labs im on the kub for absolute beginners and im having create a definition file through yaml. I tried using create and apply commands and it says there no path

Joshua Norton:

Mohamed Ayman:
Hello @Joshua Norton
What’s the output of those commands? ls /root/and this ls

Joshua Norton:

image.png

Joshua Norton:

image.png

Mohamed Ayman:
Hello @Joshua Norton
it seems that you didn’t create the deployment-definition-httpd.yaml file yet
as this file doesn’t exist in that path.

Joshua Norton:

  1. oh okay thank you, I did try to use the create with

Joshua Norton:
kubectl create deployment -f deployment-definition-httpd.yaml

Joshua Norton:
Is there something missing or mixed up with that to create that file?

Mohamed Ayman:
Hello @Joshua Norton
You need first to create this file by using this command vi <filename>
And then add your YAML to create a deployment and finally use this command kubectl create -f <filename>
The command that you have mentioned doesn’t create a file, it creates an object of Kubernetes.

Joshua Norton:
ohhhh okay i’ll give that a try thank you

Joshua Norton:
got it finally thank you so much

Mohamed Ayman:
Welcome and Happy learning!