Kubernetes Operations Documents

This Weblog Just Created For Kubernetes Operations Challenges

Creating a simple Pod in Kubernetes


The following example is a simple manifest to create Pod.

apiVersion: v1
kind: Pod
metadata:
  name: app
spec:
  containers:
  - name: app
    image: nginx

You can create a file with .yml extension and paste the above yml manifest and use kubectl to create a simple Nginx Pod resource.

kubectl apply -f pod-example.yml

You can also create the above resource directly from the site content.

kubectl apply -f https://k8sops.ir/session6/pod-example.yml
Last updated on 14 Jan 2023
Published on 14 Jan 2023