Commands

  • Kubernetes Commands

    Overview To understand basic Kubernetes commands Commands Version kubectl version Cluster Info kubectl cluster –info Get All info about Pods, Deployments Services etc kubectl get all kubectl get services kubectl get pods $ kubectl get deployments –show-labels Create a deployment kubectl run {pod-name} –image={image-name} Port Forward kubectl port-forward {pod-name} {external-port:internal-port} Port Expose kubectl expose Create…

  • | |

    MongoDB Commonly used Commands with examples

    Overview The aim of this post is to list out commonly and sometimes rarely used MongoDB commands, queries and Aggregation framework. To install MongoDB community server, please follow Setting Up MongoDB Community Server You can also refer the MongoDB documentation for an enhanced info. Commands Show Databases Create Database use {database name} eg: Create Collection…