Worker Node (Node)
- Has "Pods"
- usually 1 application per pod
- It can have one main container and side containers
- i.e. Main react application container and nginx container as helper?
- Each pod has its own IP
- Each pod can comminucate with each other with these ip addresses
- If the pod dies and new pod is created, it gives new pod a "new ip address"
- This is the reason we don't use the ip address to comminucate with pods
- To overcome IP address changing issue, we can create "services".
- They have static ip address
- each service can be attached to a pod
- and their lifecycle is not tied to pod lifecycle
- Pods communicate each other with "services"
- Two kinds of services
- External (normal application, react, nodejs etc. which requires a public access)
http://<my-app-service-ip>:port i.e. http://124.90.101.2:8080
- Internal service, i.e. Database
- To make service have a domain name attached, we use "Ingress"