Kubernetes

Create and run a Pod called some-pod with the image redis and configure it to use the selector hw=max

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

kubectl run some-pod --image=redis --dry-run=client -o yaml > pod.yaml

vi pod.yaml

spec:
  nodeSelector:
    hw: max

kubectl apply -f pod.yaml