Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 352 Bytes

File metadata and controls

26 lines (23 loc) · 352 Bytes

pod.yaml

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

Create Pod Using Manifest File

kubectl apply -f pod.yaml

List the Running Pods

kubectl get pods

Delete the Resources Created via pod.yaml file

kubectl delete -f pod.yaml