Onboarding Basics
This page is the day-one path for a new app developer: get authenticated kubectl access, find your namespace, and ship the golden-path template to staging.
Search across all documentation pages
This page is the day-one path for a new app developer: get authenticated kubectl access, find your namespace, and ship the golden-path template to staging.
Each example is a small, real step you can run in order on your first morning.
kubectl matching the cluster minor (client within one minor of Kubernetes 1.36.2).kubeconfig context is provided, not self-issued).helm (Helm 3) and git installed locally.Quick install on macOS:
brew install kubectl helm
kubectl version --client
helm version --shortNever run a command until you know where it lands.
kubectl config current-context
kubectl config get-contextscurrent-context prints the active cluster; read it out loud before mutating anything.staging context first; production is added later, if at all.kubectl config use-context <name>.Your team owns one namespace; work there, not in default.
kubectl get namespaces --show-labels
kubectl config set-context --current --namespace=team-payments-n team-payments from every command.--show-labels output reveals Pod Security enforcement, such as pod-security.kubernetes.io/enforce=restricted.RBAC decides your verbs; kubectl auth can-i tells you before you try.
kubectl auth can-i create deployments -n team-payments
kubectl auth can-i delete nodesyes; the second should return no.kubectl auth can-i --list -n team-payments to see your full permission set.Observing before changing is the core habit of a cluster-safe developer.
kubectl get deploy,pods -n team-payments
kubectl describe pod <pod-name> -n team-paymentsget shows desired vs ready replicas; a mismatch means something is wrong.describe surfaces events at the bottom - image pull errors, failed probes, and scheduling problems.Logs are your first debugging tool and are usually granted on day one.
kubectl logs -f deploy/checkout -n team-payments
kubectl logs -f deploy/checkout --previous -n team-payments-f follows the stream; --previous shows the last crashed container's logs.-c <container> to pick the right one.describe events.The golden path is a pre-approved Helm chart that already sets probes, resources, and security context.
git clone https://git.internal/golden-path/service-chart
helm upgrade --install checkout ./service-chart \
--namespace team-payments \
--set image.repository=registry.internal/checkout \
--set image.tag=1.4.0Every deploy must be reversible, and the golden path makes rollback one command.
helm history checkout -n team-payments
helm rollback checkout 1 -n team-paymentshelm history lists revisions; pick the last known-good number.You can reach a service privately without an ingress or public URL.
kubectl port-forward svc/checkout 8080:80 -n team-payments
curl localhost:8080/healthzPreview what a manifest change will do before it touches the cluster.
kubectl diff -f deployment.yaml -n team-paymentsdiff renders the exact fields that would change, additions in one column and removals in another.For production, you do not run apply; you open a pull request that GitOps reconciles.
git checkout -b bump-checkout-1.4.0
# edit apps/checkout/deployment.yaml to set the new image tag
git commit -am "checkout: bump to 1.4.0"
git push origin bump-checkout-1.4.0kubectl.Stack versions: This page was written for Kubernetes 1.36.2, Docker Engine 29.6.1 (BuildKit default), containerd (CRI runtime on nodes), Helm 3, Compose v2, Argo CD (latest - verify at build), and Gateway API (GA - verify controller support at build).
Reviewed by Chris St. John·Last updated Jul 16, 2026