Ways to deploy the POD
Make sure only 1 pod will be running on each node in the cluster
Job & CronJob:
Job: Create the pod, do the job and complete the activity
Cron job: Create the pod, do the job and complete the activity and repeats the same periodically based on the cron rules
Helps to store the data in the cluster.
Help for loadbalancing
Network Load balancer
Application Load balancer
Pods where the labels are matching with the labels of the selector of the service will be loadbalanced.They load balance only to the healthy pods.
They can be configured for session affinity.
Random Load Balancing is the algorithm used in the service
They use TCP by default
Types of service:
They are the application load balancer. Ingress help to access the application in kubernetes.
Ensure traffic is reliable
Components of ingress:
Rule -> Ingress object definition
Controller -> Ingress controller deployment