Study. uk . com
  1. Home
  2. All questions
  3. Question 246

CKA study material · question 246 of 1000

Which Service field sends a given client's connections to the same Pod each time?

  1. internalTrafficPolicy set to Local
  2. trafficDistribution set to PreferClose
  3. sessionAffinity set to ClientIP
  4. externalTrafficPolicy set to Local
Show the answer

Answer: C. sessionAffinity set to ClientIP

sessionAffinity set to ClientIP gives client-IP stickiness; the default is None.

Source: Virtual IPs and Service Proxies (Kubernetes) — Session affinity

Challenge yourself on this topic → Study as cards