Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am rileypriddle on github.
* I am rileypriddle (https://keybase.io/rileypriddle) on keybase.
* I have a public key ASCd3kQq-0CXvolxIkBANF9tu9uG8i5UgJj8GDwc_2aKpwo
To claim this, I am signing this object:
@rileypriddle
rileypriddle / .txt
Last active March 21, 2019 08:56 — forked from prudhvigodithi/.txt
Kubectl cheat sheet.
gcloud compute project-info add-metadata \
--metadata google-compute-default-region=australia-southeast1,google-compute-default-zone=australia-southeast1a
kubectl run nginx image=nginx --port=80 --record
kubectl set image deployment nginx nginx=nginx:1.2
kubectl rollout history deployment nginx
kubectl rollout status deployment nginx
kubectl rollout undo deployment nginx --to-revision=2
kubectl autoscale deployment nginx --cpu-percent=50 --min=1 --max 2
kubectl run nginx3 --image=nginx --requests=cpu=200m --limits=cpu=300m --requests=memory=1Gi --limits=memory=2Gi