v1 · Cluster Resource
Pod
Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.
Click on Property Name to see the description, and Pink Types to expand schema.
Looking for some examples?
There are 3 examples of Pod that you can use as a starting point to create your own.
apiVersion: v1 kind: Pod metadata: name: sleep namespace: default # Pod is a namespaced a resource spec: containers: - name: pods-sleep image: busybox command: - sleep - '3600'
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod
namespace: default # Pod is a namespaced a resource
spec:
containers:
- name: nginx
image: nginx:latest
livenessProbe: # A liveness probe checks if the container is running
httpGet:
path: /
port: 80
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
apiVersion: v1
kind: Pod
metadata:
name: my-pod
namespace: default # Pod is a namespaced a resource
spec:
containers:
- name: sample
image: hellokube
envFrom:
- configMapRef:
name: my-configmap # The name of the ConfigMap, which must be in the same namespace as the pod