Skip to content

Instantly share code, notes, and snippets.

@rickslayer
Created May 27, 2026 08:05
Show Gist options
  • Select an option

  • Save rickslayer/9a6da48c46f7ba4f3269818e1cf16f84 to your computer and use it in GitHub Desktop.

Select an option

Save rickslayer/9a6da48c46f7ba4f3269818e1cf16f84 to your computer and use it in GitHub Desktop.
Kubernetes Study

Kubernetes

Explain Deployment

kubectl explain deployment

ReplicaSet

kubectl get replicasets

Output Template

curl http://`kubectl get svc DEP_NAME -o=jsonpath="{.status.loadBalancer.ingress[0].ip}"`/version

Scaling a deployment

kubectl scale deployment DEP_NAME --replicas=5

# number of pods
kubectl get pods | grep DEP_NAME | wc -l

Rollout history

kubectl edit deployment/fortune-app-blue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment