concept hostname in category kubernetes
appears as: hostname, hostname, hostnames, hostnames

This is an excerpt from Manning's book Kubernetes in Action.
By this point, you’re probably wondering how exactly containers can isolate processes if they’re running on the same operating system. Two mechanisms make this possible. The first one, Linux Namespaces, makes sure each process sees its own personal view of the system (files, processes, network interfaces, hostname, and so on). The second one is Linux Control Groups (cgroups), which limit the amount of resources the process can consume (CPU, memory, network bandwidth, and so on).
Listing 18.15. A Secret holding the credentials for connecting to the service instance
$ kubectl get secret postgres-secret -o yaml apiVersion: v1 data: host: <base64-encoded hostname of the database> #1 username: <base64-encoded username> #1 password: <base64-encoded password> #1 kind: Secret metadata: name: postgres-secret namespace: default ... type: Opaque