title: Can I change the limits of compute resources of unscheduled pods, with a custom scheduler in kubernetes
body: <p>I am new to kubernetes and I am working on compute resource management of a kubernetes cluster. For this reason, I downloaded a toy scheduler (<a href="https://github.com/kelseyhightower/scheduler" rel="nofollow noreferrer">https://github.com/kelseyhightower/scheduler</a>) in go. I know that once you set compute resource requests to pods you cannot change them. However, suppose that I have not set the resource requirements of the pod in the yaml file: e.g. nginx.yaml:</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Deployment
  metadata:
    name: nginx-deployment
    labels:
      app: nginx
  spec:
    replicas: 2
    selector:
      matchLabels:
        app: nginx
    template:
      metadata:
        labels:
          app: nginx
      spec:
        schedulerName: hightower
        containers:
        - name: nginx
          image: nginx
          ports:
            - containerPort: 8080
              protocol: TCP
  </code></pre>
  
  <p>can I apply resource requests for each pod that the custom scheduler tries to schedule?</p>