deldar
September 10, 2020, 8:14am
#1
Hi Kodekloud,
Everytime when I open the yaml files, after executing the following commands:
kubectl get pod example -o yaml > example.yaml
kubectl get deployment anotherexample -o yaml > anotherexample.yaml
the format given in the yaml file gets corrupt! Can you guys please help me out ?
Thanks a lot,
Best regards,
Deldar
Hello, @deldar
Can you share the image or show me the yaml file what corrupt data you are getting?
deldar
September 10, 2020, 8:58am
#3
Hi @player001 , I have just uploaded the image in the new discussion
It’s not a corrupt data. It’s a system generated managed fields.
1 Like
deldar
September 10, 2020, 11:23am
#5
Hi, than please explain why I receive the following error ?
I have followed the same instructions provided in this video:
https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/learn/lecture/21738774#notes
LAB question 6: Set Node Affinity to the deployment to place the PODs on node01 only
can you paste your yaml file here? You can check the issue in the line number 46. Must be proper align.
1 Like
deldar
September 10, 2020, 11:41am
#7
First attempt uploading images:
It only accepts one image
Second attempt uploading the screenshots as a pdf file:
Sorry, new users can not upload attachments.
deldar
September 10, 2020, 11:50am
#9
After a second attempt, I get this error:
I have not changed anything in the format.
Check the alignments and fields should be in the correct place.
deldar
September 10, 2020, 11:53am
#11
I will give it another try, placing the Node Affinity rule on another place. I will give you an update !
Image quality is not good. Can you please share only that line number image before and after.
deldar
September 10, 2020, 12:09pm
#13
Now I receive this error:
deldar
September 10, 2020, 12:10pm
#14
The line number “120” is starting with app: blue (in the template section). The cursor is at line 120…
deldar
September 10, 2020, 12:18pm
#15
What do you mean by after ? After executing kubectle apply -f on the yaml file ? If thats the case… Nothing has changed in the yaml file.
I can see that your affinity field and containers field is not in line.
1 Like
deldar
September 10, 2020, 1:12pm
#17
Great service! Thanks a lot. It works fine!!!
In tutorial videos while taking existing configuration to yaml file , it is a short file with minimum details . but while we doing in lab section , it is a huge file with lots of information, Why it so? is due to any difference in Kubernetes versions ?
tgp
December 27, 2020, 5:19am
#19
yes. . it is due to difference in version
1 Like