Last active
August 2, 2020 16:47
-
-
Save frankdavidcorona/3435048c8e6b7477dbe78ff1339b7844 to your computer and use it in GitHub Desktop.
Usesfully commands for PODS
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
Install Kubectl and Gcloud: | |
$ snap install google-cloud-sdk --classic | |
$ sudo snap install kubectl --classic | |
Login in gcloud using support account: | |
$ gcloud auth login | |
[email protected] | |
h8aLm6vSfq2r1123 | |
See RabbitMQ: | |
kubectl -n rabbitmq port-forward rabbitmq-rabbitmq-ha-0 9999:15672 | |
See PODS | |
kubectl get pods -n production | |
See logs for specific pod | |
kubectl logs {podsName} service -n production -f | |
Restart a pod | |
kubectl -n production delete pod {podName} | |
Get credentials for each environment: | |
$ gcloud beta container clusters get-credentials develop --region us-east1 --project primavera-188715 | |
$ gcloud container clusters get-credentials production-tf --zone us-east1 --project primavera-prod-193915 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment