I have Kubernetes cluster, hosted on Google cloud platform, that running two deployments: app1 and app2.
My cluster have two Node-Pools: pool1 and pool2.
Deploying pods, from yaml file, like this:
kubectl apply -f ./app1.yaml
kubectl apply -f ./app2.yaml
Actualy, it deploy two pods to pool1, which is the cluster "default-pool".
I want to change this behavior to deploy app2 to pool2 (and app1 to pool1 - as before, default). Looking to pseudo command like this:
kubectl apply -f ./app1.yaml
kubectl apply -f ./app2.yaml --pool=pool2
explicit give the pool name when publishing new pod.
How to do it right?
Thanks!