8.1.1 Node selectors
View in the book.
Buy the book.
Apply the change
kubectl apply -f Chapter08/8.1.1_NodeSelection/deploy_nodeselector-autopilot.yaml
Wait for the Pod. It will require a new node since we’re requring arm64.
watch -d kubectl get pods,nodes
Verify by describing the node which the Pod was assigned
$ kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
robohash-7b48845fc-2rz8k 1/1 Running 0 3m3s 10.64.129.9 gk3-my-cluster-pool-2-801f6e81-f6tm <none> <none>
timeserver-8669c964f8-x8mnt 1/1 Running 0 3m3s 10.64.129.221 gk3-my-cluster-pool-2-f010980d-kftw <none> <none>
$ kubectl describe node gk3-my-cluster-pool-2-f010980d-kftw | grep arch
beta.kubernetes.io/arch=amd64
kubernetes.io/arch=amd64
If you see kubernetes.io/arch=amd64
it was assigned correctly.