Last active
July 13, 2021 18:49
-
-
Save Simpfc/8676625074bb2229920645559737d149 to your computer and use it in GitHub Desktop.
Clouds & k8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## k8 | |
kubectl get nodes | |
kubectl get componentstatuses | |
kubectl cluster-info | |
kubectl run hello --generator=run-pod/v1 --image=nginx:latest --port=80 | |
kubectl get pods | |
kubectl delete pods hello | |
kubectl describe pods hello | |
kubectl exec -it hello sh | |
kubectl logs hello | |
kubectl port-forvard hello 7788:80 # 80 from pod -> local 7788 | |
kubectl apply -f pods.yaml | |
kubectl delete -f pods.yaml | |
## GPC | |
gcloud version | |
gcloud init | |
gcloud services enable container.googleapis.com | |
gcloud container clusters create test1 | |
gcloud container clusters create test1 --nun-nodes=4 | |
gcloud container clusters create test1 --zone us-central1-a | |
gcloud container clusters get-credentials test1 | |
gcloud container clusters delete test1 --zone us-central1-a | |
## AWS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment