- Kubernetes API Terminology
- Understanding Kubernetes Objects
- Pods
- Init Containers
- kubectl Cheat Sheet
Log in to your Kubernetes control plane server.
Get a list of resources available in the cluster.
kubectl api-resources
Get detailed documentation for the pods
resource.
kubectl explain pod
Create a YAML manifest file for a Pod.
vi my-pod.yml
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
containers:
- name: nginx
image: nginx:stable
Create the Pod.
kubectl apply -f my-pod.yml
Get a list of Pods in the default
Namespace.
kubectl get pods
Delete the Pod.
kubectl delete pod my-pod