Introduction
Hi, I am Akshay Rao, will be starting a exercise series on k8s.
In this blog there will not explanation only problems and solutions.if you want explanation have a look at this series:-
https://dev.to/aksrao1998/series/24887
Pre-requisite
have minikube or kind running in the local machine.
Note:- k is alias for kubectl.
Problem 1
Create a pod that will be deployed to a Node that has the label 'accelerator=nvidia-tesla-p100'
Solution
[~ (⎈|minikube:mynamespace)]$ k label node minikube accelerator=nvidia-tesla-p100
node/minikube labeled
Problem 2
Taint a node with key tier and value frontend with the effect NoSchedule. Then, create a pod that tolerates this taint.
Solution
[~ (⎈|minikube:mynamespace)]$ k taint nodes minikube tier=frontend:NoSchedule
node/minikube tainted
i hope this helps you
Thank you
Top comments (0)