Skip to content

Instantly share code, notes, and snippets.

@mthipparthi
Created January 16, 2020 05:57
Show Gist options
  • Save mthipparthi/36cded7673e3c47ecc64106ab4d180b8 to your computer and use it in GitHub Desktop.
Save mthipparthi/36cded7673e3c47ecc64106ab4d180b8 to your computer and use it in GitHub Desktop.
brew install kubectl
kubectl get-contexts
kubectl --help
kubectl config --help
kubectl config get-contexts
kubectl get pods -n digicap-restricted
kubectl exec -it digicap-media-access-69fc5f6bf8-r652g -n digicap-restricted
kubectl exec -it digicap-media-access-69fc5f6bf8-r652g bash -n digicap-restricted
kubectl cluster-info
kubectl get services
history | grep "kubectl"
kubectl get services -n digicap-restricted
kubectl get ingress -n digicap-restricted
kubectl get nodes
brew install kubectl
kubectl config use-context kubecluster.dev.k8sinternal.com
kubectl auth can-i get pods
kubectl proxy
kubectl get pods -n all-namespaces
kubectl get pods --all-namespaces
kubectl config get-contexts # display list of contexts \n
kubectl config use-context kubecluster.uat.k8sinternal.com
kubectl get pods --all-namespaces
kubectl get pods -n kube-system
kubectl describe nodes
kubectl get node --selector='node-role.kubernetes.io/master'
kubectl get node --selector='!node-role.kubernetes.io/master'
kubectl get services
kubectl get pods --all-namespaces
kubectl describe pod nginx-ingress-controller-664f488479-j9fjj --namespace kube-system
kubectl exec -it nginx-ingress-controller-664f488479-j9fjj bash --namespace kube-system
kubectl get pods --all-namespaces
kubectl describe nodes
kubectl get nodes
kubectl get services
kubectl get services -n all-namespaces
kubectl get services --all-namespaces
kubectl get pods --all-namespaces | grep "kube-system"
kubectl get pods -n alerton
kubectl get pods -n alertsonthego
kubectl port-forward -p ds-cache-api-uat-deployment-854bf75587-47crz 2300:8080
kubectl port-forward ds-cache-api-uat-deployment-854bf75587-47crz 2300:8080
kubectl port-forward ds-cache-api-uat-deployment-854bf75587-47crz 2300:8080 -n alertsonthego
kubectl get services -n alertsonthego
kubectl describe service ds-cache-api-uat-service
kubectl describe service ds-cache-api-uat-service -n alertsonthego
kubectl describe service cmp-compliance-api-uat-service -n alertsonthego
kubectl config use-context kubecluster.prod.k8sinternal.com
kubectl get nodes
kubectl config use-context kubecluster.prod.k8sinternal.com
kubectl plugin list
kubectl krew install ctx\nkubectl krew install ns
kubectl krew install tree
kubectl kubectx
kubectl ctx
kubectl ns
kubectl ctx
kubectl ns
kubectl ctx
kubectl ns
kubectl tree
kubectl tree --help
kubectl tree deployment
kubectlget pods
kubectl get pods
kubectl tree deployment manag
kubectl tree deployment manager
kubectl tree deployment capture
kubectl ns
kubectl ns --help
kubectl ns -c
kubectl ctx
kubectl ns
kubectl get pods
kubectl get nodes
kubectl ns
kubectl get nodes
kubectl get pods
kubectl ns
kubectl get pods
kubectl ns
kubectl get pods
kubectl ns
kubectl ctx
kubectl ns
kubectl get pods
krew install kubectl-ssh
kubectl plugin list
krew install kubectl-ssh
kubectl krew install kubectl-ssh
kubectl krew install ssh
kubectl krew install all
kubectl krew install kubectl-clogs
kubectl krew install clogs
kubectl krew install ssh-jump
kubectl plugin list
kubectl ns
kubectl get pods
kubectl ns
kubectl get pods
kubectl ssh-jump --help
kubectl get nodes
kubectl ssh-jump gke-digicap-cluster-digicap-cluster-n-2c0e4e6e-r13d
kubectl tree kservice
kubectl tree kservice mana
kubectl tree kservice --help
kubectl tree kservice -s 8080
kubectl tree kservice.v1.serving.knative.dev
kubectl tree kservice.v1.serving.knative.dev 8080
kubectl tree --help
kubectl tree deployment digicap-manager
kubectl tree kservice.v1.serving.knative.dev digicap-manager
kubectl tree kservice.v1.serving.knative.dev digicap-manager-ingress
kubectl tree kservice.v1.serving.knative.dev digicap-manager
kubectl tree --help
kubectl tree Service digicap-manager
kubectl tree service digicap-manager
kubectl tree service digicap-manager-ingress
kubectl tree ingress digicap-manager-ingress
kubectl tree deployment digicap-manager
kubectl get logs digicap-manager-56b85b4cc5-mh55l
kubectl get log digicap-manager-56b85b4cc5-mh55l
kubectl get --help
kubectl logs digicap-manager-56b85b4cc5-mh55l
kubectl logs digicap-manager-56b85b4cc5-mh55l --help
kubectl logs digicap-manager-56b85b4cc5-mh55l --since=1h
kubectl krew install doctor
kubectl doctor
kubectl ctx
kubectl get pods
kubectl ns
kubectl dcotor
kubectl doctor
kubectl krew install pod-logs
kubectl pod-logs
kubectl ns
kubectl get pds
kubectl get pods
kubectl get nodes
kubectl get nodes | grep "master"
kubectl get nodes | grep "node"
kubectl krew install tail
kubectl get pods
kubectl get nodes | grep "node"
kubectl get pods
kubectl tail --rs ds-cache-api
kubectl tail --rs ds-cache-api-prod-deployment-6b89b85998-964cm
kubectl tree --help
kubectl tree deployment ds-cache-api-prod-deployment
kubectl ctx
kubectl ns
kubectl get pods
kubectl ctx
kubectl ns
kubectl ctx
kubectl ns
kubectl ctx
kubectl ns
kubectl ctx
kubectl ns
kubectl get pods
kubectl ctx
kubectl ns
kubectl get pods
kubectl ctx
kubectl plugin list
kubectl ctx
kubectl ns
kubectl get pods
kubectl get pods --all-namespaces
kubectl get nodes
kubectl get nodes | grep "master"
kubectl get nodes | grep "node"
kubectl get pods --all-namespaces
kubectl describe nodes
kubectl ctx
kubectl ns
kubectl ctx
kubectl ns
kubectl get pods
kubectl ctx
kubectl ns
kubectl get nods
kubectl get nodes
kubectl ctx
kubectl ns
kubectl get nodes
kubectl get nodes | grep "master"
kubectl get nodes | grep "node"
kubectl ctx
kubectl ns
kubectl get pods
kubectl exec -it 7zr-capture-999b98dff-tb2dm bash
kubectl logs 7zr-capture-999b98dff-tb2dm --since=1h
kubectl tree deployment 2bl-capture
kubectl ctx
kubectl ns
kubectl get pods
kubectl ctx
kubectl doctor
history | grep "kubectl" |cut -c 8- | uniq
history | grep "kubectl" |cut -c 8-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment