> ## Content Index
> Fetch the complete content index at: https://scriptcrunch.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Create Static Pod on the Kubeadm Cluster
- URL: https://scriptcrunch.com/create-static-pod-on-the-kubeadm-cluster/
- Published: 2025-10-28T05:58:00.000Z
- Updated: 2026-06-23T08:55:53.000Z
- Author: Aswin Vijayan
- Tags: #Migrated-1758801465347, #wp, #wp-post, #Import 2025-09-25 11:57, Kubernetes Certifications

In this example, I am going to show you how to create a static pod on the [Kubeadm cluster](https://scriptcrunch.com/upgrade-kubernetes-kubeadm-cluster/) for the [**nginx**](https://scriptcrunch.com/deploy-nginx-kubernetes-ecr/) web server.

## Step 1: Create a Manifest file

First, we need to create a YAML manifest file for the [nginx](https://scriptcrunch.com/change-nginx-index-configmap/), static pod, to create the manifest file run the following command

```bash
bashkubectl run nginx --image=nginx --dry-run=client -o yaml > nginx.yaml
```

This command will create a manifest file for nginx to run as a static pod. If you need to make any changes to the manifest file, use the command below

```bash
vi nginx.yaml
```

A small portion of the nginx.yaml file is shown below.

![Create Static Pod on the Kubeadm Cluster: static pod yaml file](https://storage.ghost.io/c/98/9f/989fb5e0-fca9-4938-afe7-999714e98540/content/images/2025/09/image-9-2.png)

## Step 2: Validate the Manifest file

The next step is to validate the manifest file, to validate we can use the Kubeval utility.

That checks whether your [Kubernetes YAML](https://scriptcrunch.com/convert-helm-chart-kubernetes-yaml/) file is properly structured, formatted, and syntax correct, and conforms to the official[ API](https://scriptcrunch.com/make-api-call-with-python/) schema for a specific [Kubernetes](https://scriptcrunch.com/tag/kubernetes/) version.

If you don't have Kubeval installed in your system, run the following command to install it.

```bash
wget https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz

tar xf kubeval-linux-amd64.tar.gz

sudo cp kubeval /usr/local/bin
```

To verify if Kubeval is installed properly, run the command below.

```bash
kubeval --version
```

You will get the following output.

![Create Static Pod on the Kubeadm Cluster: verifying kubeval verison](https://storage.ghost.io/c/98/9f/989fb5e0-fca9-4938-afe7-999714e98540/content/images/2025/09/image-10-1.png)

Now, run the following command to validate the manifest file.

```bash
kubeval nginx.yaml
```

You will get the following output if the manifest file is created according to the Kubernetes requirements.

![Create Static Pod on the Kubeadm Cluster: Validating manifest file using Kubeval](https://storage.ghost.io/c/98/9f/989fb5e0-fca9-4938-afe7-999714e98540/content/images/2025/09/image-11-1.png)

## Step 3: Deploy the Nginx Static pod

To deploy the static pod, you have to copy the **nginx.yam**l manifest to the static pod manifest location.

**/etc/kubernetes/manifests/** is the location where every static pod manifest file is present.

The manifest files in this directory are deployed by **Kubelet,** kubelet deploysthe static pod during the booting time and keeps it running without the involvement of **Controlplane**.

Now, run the following command to move the nginx manifest file to the **/etc/kubernetes/manifests/** directory.

```bash
sudo mv nginx.yaml /etc/kubernetes/manifests/
```

## Step 4: Verifying Static Pod

Verify if your nginx pod has been deployed automatically without giving the apply command. Use the command below to check if the pod is up and running

```bash
kubectl get po
```

Static pods cannot be deleted until the manifest file is removed from the **/etc/kubernetes/manifests/** directory.

Even if you delete the static pod using the **delete pod** command, a new pod will be created within a minute.

The only way to delete a static pod is to remove the static pod manifest file from the **/etc/kubernetes/manifests/** directory.

![Create Static Pod on the Kubeadm Cluster: Static pod testing commands](https://storage.ghost.io/c/98/9f/989fb5e0-fca9-4938-afe7-999714e98540/content/images/2025/09/image-8-3.png)

You can see in the above image, that the static pod cannot be deleted until the static pod manifest file is removed from the **/etc/kubernetes/manifests/** directory.

## Conclusion

In summary, we learned about Kubernetes static pod, their manifest file location, and how it is created.

I believe this blog gives you simple knowledge about Kubernetes Static Pods.