dean madani:
then went back to solution and it showed using, kubectl run my-webapp --image=nginx -l tier=frontend --replicas=2, is this for deployment? why they didn’t create deploy then change the label?
Mohamed Ayman:
The two ways will work fine but kubectl run
command no longer creates a deployment, will create only a POD.
dean madani:
correct, it’s misleading. maybe the video is using old K8s
dean madani:
for that question , we need to create deployment then add the label under metadata? right?
Mohamed Ayman:
Yes, check this gif:
dean madani:
Yes, that’s what I did, just add the tier:frontend as 2nd label under metadata. Thanks,
dean madani:
just trying to pass the exam