Skip to content

Instantly share code, notes, and snippets.

@bilaschandra
Last active August 1, 2017 09:26
Show Gist options
  • Select an option

  • Save bilaschandra/0a44daa55f4a5d5ec192402846293eaf to your computer and use it in GitHub Desktop.

Select an option

Save bilaschandra/0a44daa55f4a5d5ec192402846293eaf to your computer and use it in GitHub Desktop.
FN-DOC
1) docker-compose exec db bash
Access db container by this command
2) mongo
Type the above and enter
4) use database
3) db.coverage.find({}).count()
IN mongo DB command line get total records
Install and Set Up kubectl
1) Download the latest release with the command:
=> curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl
To download a specific version, replace the $(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) portion of the command with the specific version.
For example, to download version v1.7.0 on MacOS, type:
=> curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.7.0/bin/darwin/amd64/kubectl
2) Make the kubectl binary executable.
=> chmod +x ./kubectl
3) Move the binary in to your PATH.
=> sudo mv ./kubectl /usr/local/bin/kubectl
4) Command line auto-complete list
=> source <(kubectl completion bash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment