A Manifest contains all the properties that we can define different Kubernetes resources. We can describe all the resource-specific attribute using spec or specification in the manifest file.
How Manifests Works
kubectl create
to create the Kubernetes resources using the manifest.API server does the following actions:
Here’s a sample manifest file that creates a basic NGINX Pod.
apiVersion: v1
kind: Pod
metadata:
name: pod-nginx
spec:
containers:
- name: container-nginx-1
image: nginx:latest
Every manifest has the same set of top-level properties: