Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Exploring the Existing Namespaces

Sumit Rawal answered on June 23, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • what is namespace
  • Using namespace

  • Exploring the Existing Namespaces

    0

    Getting the existing namespaces

    The default Namespace

    The kube-public Namespace

    The kube-system Namespace

    Try it yourself

    Now that we know that our cluster has multiple Namespaces, let’s explore them a bit.

    Getting the existing namespaces

    We can list all the Namespaces through the kubectl get namespaces command. As with the most of the other Kubernetes objects and resources, we can also use a shortcut ns instead of the full name.

    1

    kubectl get ns

    Get Namespaces in cluster

    The output is as follows.

    12345

    NAME STATUS AGE

    default Active 23m

    kube-node-lease Active 23m

    kube-public Active 23m

    kube-system Active 23m

    Output of 'kubectl get ns'

    We can see that three Namespaces were set up automatically when we created the cluster. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Jun 23 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.