Skip to content

Instantly share code, notes, and snippets.

@tankibaj
Last active April 9, 2021 12:39
Show Gist options
  • Save tankibaj/91e84a229184ef7dc30066f7c137feb0 to your computer and use it in GitHub Desktop.
Save tankibaj/91e84a229184ef7dc30066f7c137feb0 to your computer and use it in GitHub Desktop.

To get cluster information, run kubectl cluster-info

For deploy nginx image from dockerhub, run kubectl create deployment nginx --image nginx

For expose port publicly, run kubectl expose deployment nginx --port 80 --type=NodePort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment