title: FailedScheduling node(s) didn't match node selector in kubernetes set up on aws
body: <p>I have a kubernetes set up in AWS with multiple  nodes.</p>
  <p>while trying to create one of the pods, I get the below error ,</p>
  <hr />
  <pre><code>Warning  FailedScheduling  4m7s (x2 over 4m7s)  default-scheduler  0/15 nodes are available: 11 
  Insufficient cpu, 12 Insufficient memory, 15 node(s) didn't match node selector.
  Warning  FailedScheduling  50s (x6 over 4m11s)  default-scheduler  0/15 nodes are available: 11 
  Insufficient cpu, 11 Insufficient memory, 15 node(s) didn't match node selector.
  </code></pre>
  <p>my pod yaml is like below,</p>
  <hr />
  <pre><code>apiVersion: extensions/v1beta1
  kind: Deployment
  metadata:
    labels:
      app: test-instapi
      suite: test
      log-topic: logs.app.test.instapi
    name: test-instapi
    namespace: test-dev
  spec:
    replicas: 1
    selector:
      matchLabels:
        app: test-instapi
        cache-service: hazelcast-instapi
    strategy:
      rollingUpdate:
        maxSurge: 1
        maxUnavailable: 1
      type: RollingUpdate
    template:
      metadata:
        annotations:
          prometheus.io/scrape_port: &quot;9999&quot;
          prometheus.io/should_be_scraped: &quot;true&quot;
        labels:
          app: test-instapi
          cache-service: hazelcast-instapi
          log-topic: logs.app.test.instapi
          version: latest
      spec:
        nodeSelector:
          beta.kubernetes.io/instance-type: m5.8xlarge
        containers:
        - image: artifactory.global.standardchartered.com/test/test-fast-api:latest
          imagePullPolicy: Always
          name: test-instapi
          ports:
          - containerPort: 8080
            name: hazel-mancenter
            protocol: TCP
          - containerPort: 9999
            name: jmxexporter
            protocol: TCP
          - containerPort: 9000
            name: rest
            protocol: TCP
          resources:
            limits:
              cpu: &quot;16&quot;
              memory: 96Gi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          volumeMounts:
          - mountPath: /opt/docker/conf/application.conf
            name: config
            subPath: application.conf
          - mountPath: /opt/docker/conf/application.ini
            name: config
            subPath: application.ini
          - mountPath: /opt/docker/conf/cassandra.conf
            name: config
            subPath: cassandra.conf
          - mountPath: /opt/docker/conf/hazelcast.yaml
            name: config
            subPath: hazelcast.yaml
          - mountPath: /opt/docker/conf/logback.xml
            name: config
            subPath: logback.xml
          - mountPath: /opt/docker/conf/streaming.conf
            name: config
            subPath: streaming.conf
          - mountPath: /opt/docker/conf/routes
            name: config
            subPath: routes
        dnsPolicy: ClusterFirst
        restartPolicy: Always
        schedulerName: default-scheduler
        securityContext: {}
        terminationGracePeriodSeconds: 30
        volumes:
        - configMap:
            defaultMode: 420
            name: test-instapi
          name: config
  ***
  </code></pre>
  <p>the version of my kubernetes set up is as below</p>
  <hr />
  <pre><code>    Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;15&quot;, GitVersion:&quot;v1.15.3&quot;,                 
      GitCommit:&quot;2d3c76f9091b6bec110a5e63777c332469e0cba2&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2019-08- 
      19T11:13:54Z&quot;, GoVersion:&quot;go1.12.9&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
      Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;15&quot;, GitVersion:&quot;v1.15.11&quot;, 
      GitCommit:&quot;d94a81c724ea8e1ccc9002d89b7fe81d58f89ede&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-03- 
      12T21:00:06Z&quot;, GoVersion:&quot;go1.12.17&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
  </code></pre>
  <hr />
  <p>What am I missing here ? how do I make sure that the pod is assinged to one of the 8xlarge machines ?
  are there any options of node selector which can fix this issue ?</p>