# Manual Scheduling

It is the way that we create schedule for `Pod` .By default in `Pod` template when we create the `Pod` Kubernetes will have scheduler to select the `Node` . After create pod it will update section called `nodeName` in template file

```yaml
# Pod Template
apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels: 
    name: nginx
spec: 
  containers:
  - name: nginx
    image: nginx 
    ports:
      - containerPort: 8080
  nodeName: <node_name> # this property will set automatically but we can customize it
            
          
```

We can use this `nodeName` property in case that we create the `Pod` at first time but If we would like to add the `nodeName` to existing `Pod` we need to use `Binding`&#x20;

```yaml
# Binding Template
apiVersion: v1
kind: Binding
metadata:
  name: nginx
target:
  apiVersion: v1
  kind: Node
  name: <node_name>  
  
```

{% hint style="warning" %}
**Noted:**

If the status of pod is pending , it mean don't have the scheduler in k8s
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev7days.gitbook.io/dev7days/scheduling/manual-scheduling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
