Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 280 Bytes

04-NAMESPACE.md

File metadata and controls

14 lines (10 loc) · 280 Bytes

How to create kubectl alias (optional):

  • alias k=kubectl

List all namespaces:

  • k get ns

Create a namespace

  • k create ns mynamespace

Create a pod in a specific namspace

  • k run redis --image=redis -n mynamespace

To see more details of the a POD:

  • k get po -o wide