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

How Namespaces Affect Service’s DNS

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

Contents


More Related Answers

  • resolvconf set dns
  • whar is namespace
  • how to access the dns serve linux
  • DNS vs Nameserver
  • resolve dns name
  • stieground nameservers
  • what is namespace
  • What are namespaces?
  • Using namespace
  • Reserved Top Level DNS Names
  • Namespace
  • Different types of DNS routing#
  • types of namespaces

  • How Namespaces Affect Service’s DNS

    0

    Accessing service’s DNS using namespace

    Accessing service’s DNS using namespace

    As we have seen before, when we create a service, Kubernetes will allow us to access that service with a DNS entry using the service name. So if we have a service called my-service, we can access it with something like $ curl http://my-service. These DNS entries are also scoped by namespace, so the path will be ., and when the namespace-name is omitted, the current namespace is assumed. Using the previous example, it would be the same thing as calling http://my-service.default. Let’s see that in action.

    To make it easier to see what’s happening in our example, we will use the hellok8s image we have built before, running a different version in each namespace, and then we will create the exact same service in both namespaces.

    Popularity 2/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Jun 19 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.