Skip to content

Instantly share code, notes, and snippets.

@emmahsax
Last active March 12, 2024 17:47
Show Gist options
  • Save emmahsax/a6ac8de6b0cef7ae306c4deb80462fc0 to your computer and use it in GitHub Desktop.
Save emmahsax/a6ac8de6b0cef7ae306c4deb80462fc0 to your computer and use it in GitHub Desktop.
A very simple Kubernetes pod

A simple Kubernetes pod

Apply this pod to a Kubernetes cluster:

kubectl apply -f simple_pod.yaml

This pod will be applied to the default namespace.

apiVersion: v1
kind: Pod
metadata:
name: simple
spec:
containers:
- image: ubuntu
name: simple
command:
- "/bin/sh"
- "-c"
- "sleep 9999"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment