<p>is there a way to tell kubectl that my pods should only deployed on a certain instance pool?</p>

<p>For example:</p>

<pre><code>nodeSelector:
      pool: poolname
</code></pre>

<p>Assumed i created already my pool with something like:</p>

<pre><code>gcloud container node-pools create poolname --cluster=cluster-1 --num-nodes=10 --machine-type=n1-highmem-32
</code></pre>

<p>Ok, i found out a solution:</p>

<p>gcloud creates a label for the pool name. In my manifest i just dropped that under the node selector. Very easy.</p>

<p>Here comes my manifest.yaml: i deploy ipyparallel with kubernetes</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: ipengine
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: ipengine
    spec:
      containers:
      - name: ipengine
        image: &lt;imageaddr.&gt;
        args:
        - ipengine
        - --ipython-dir=/tmp/config/
        - --location=ipcontroller.default.svc.cluster.local
        - --log-level=0
        resources:
          requests:
            cpu: 1
            #memory: 3Gi
      nodeSelector:
        #&lt;labelname&gt;:value
        cloud.google.com/gke-nodepool: pool-highcpu32
</code></pre>
