Question-91: How cgroup and Linux namespace sharing done for a pod and its container?
Answer: Each container within a pod runs in its own cgroup, but they share the Linux Namespaces.
Question-92: How the application running in same pod use the network resources?
Answer: All the application running in the same pod
- Share the same IP address
- Share the port space
- Have same hostname
- Can communicate using IPC (interprocess communication channel)
Question-93: How does application in different pods have network?
Answer: Application running in different pods are
- Isolated from each other.
- Have different IP address
- Have Different hostnames.
Question-94: Can you give an example what you can put inside the pod?
Answer: If all your applications can talk to each other over the network (e.g. Webservice, Messaging Queues etc), then we highly recommend to put them all in different pod. Because then you can scale each individual pod based on the requirement. If you think all your application cannot talk to each other over network and required interprocess communication then you have to put all of them in single POD. However, it means your applications are not well designed.
Question-95: What is declarative configuration?
Answer: You might have seen technology world is moving towards the declarative configurations. It means you write down what all configuration you want in a configuration file and then submit that configuration to a service that takes actions to ensure desired state becomes the actual state. And this kind of declarative configuration you can check in your source code repository.