apiVersion: v1
kind: Pod
metadata:
name: web
spec:
containers:
- name: web
image: nginx:1.27
ports:
- containerPort: 80
kubectl apply -f pod.yaml
kubectl get pods -o wide — which node, which IPkubectl describe pod web — events, status, why it's stuckkubectl logs web — the container's output-c <container> if the pod has more than one)kubectl exec -it web -- bash — a shell insidekubectl delete pod web — remove itPods run on a private, isolated cluster network
Visible to other pods and services in the cluster — not from outside
kubectl proxy connects your machine to the cluster API:
kubectl proxy
wget -qO- http://localhost:8001/version
Real external access comes from Services (later deck)