Kubernetes Namespaces

Discussion in 'Docker and Containers' started by beren43, Dec 23, 2019.

  1. beren43

    beren43 New Member

    Joined:
    Nov 25, 2019
    Messages:
    9
    Likes Received:
    0
    Hi,
    I'm starting to learn Kubernetes. Namespace namespace. Namespaces / / Kubernetes supports multiple virtual clusters supported by the same physical cluster. These virtual clusters are called namespaces. That is, namespace is a virtual cluster and each has its own master and nodes ? Or just a Pod group ?
     
    #1
  2. fossxplorer

    fossxplorer Active Member

    Joined:
    Mar 17, 2016
    Messages:
    426
    Likes Received:
    49
    Hey,
    namespaces share/use the same control plane of a k8s cluster and the nodes (aka. workers where the actual workloads run) by default, but you can label the nodes to run a specific type of workload related to namespaces. Hope it helps :)
     
    #2
    Last edited: Jan 7, 2020
  3. beren43

    beren43 New Member

    Joined:
    Nov 25, 2019
    Messages:
    9
    Likes Received:
    0
    Then what is the difference between namespace and service ?
     
    #3
  4. fossxplorer

    fossxplorer Active Member

    Joined:
    Mar 17, 2016
    Messages:
    426
    Likes Received:
    49
    Well, so within a "virtual cluster", i.e a namespace, you have deployed your application that might be running as 1 or perhaps 3 replicas.
    With a K8s service you can expose and access your application with k8s taking care of the underlying.
     
    #4
    Last edited: Jan 7, 2020
Similar Threads: Kubernetes Namespaces
Forum Title Date
Docker and Containers Kubernetes.First pod Dec 24, 2019
Docker and Containers Cloud Native DevOps With Kubernetes - free book Mar 10, 2019
Docker and Containers Does anyone have a Kubernetes lab yet? Oct 11, 2017
Docker and Containers Does anyone use Kubernetes for their docker homelab setup? Jun 30, 2017

Share This Page