Welcome to the Linux Foundation Forum!

clarification on namespaces

Hi,
i took the knowledge check in APIs and Access.
in question 5.5 - all objects are restricted to a single namespace. the correct answer is false but in the kubernetes documentation i found this: "Namespaces can not be nested inside one another and each Kubernetes resource can only be in one namespace."

any clarifications ?

Comments

  • Posts: 4

    Some objects apply for all namespaces or does not belong to a specific namespace . Try "kubectl api-resources" you will see some resources are not namespaced.

    1. NAME SHORTNAMES APIGROUP NAMESPACED KIND
    2. bindings true Binding
    3. componentstatuses cs false ComponentStatus
    4. configmaps cm true ConfigMap
    5. endpoints ep true Endpoints
    6. events ev true Event
    7. limitranges limits true LimitRange
    8. namespaces ns false Namespace
  • Posts: 2,434

    Hi @gharbi.bdr

    It means that you cannot nest namespaces, that is you cannot create a namespace inside another namespace.

    And, a namespaced Kubernetes resource can only live in one namespace, but if it is deployed in a second namespace, that second deployment is already a separate, isolated instance of that resource.

    Regards,
    -Chris

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training