-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Support Service sessionAffinity #9076
Copy link
Copy link
Closed
Labels
area/k8sImpacts the kubernetes API, or kubernetes -> cilium internals translation layers.Impacts the kubernetes API, or kubernetes -> cilium internals translation layers.kind/community-reportThis was reported by a user in the Cilium community, eg via Slack.This was reported by a user in the Cilium community, eg via Slack.kind/featureThis introduces new functionality.This introduces new functionality.pinnedThese issues are not marked stale by our issue bot.These issues are not marked stale by our issue bot.
Metadata
Metadata
Assignees
Labels
area/k8sImpacts the kubernetes API, or kubernetes -> cilium internals translation layers.Impacts the kubernetes API, or kubernetes -> cilium internals translation layers.kind/community-reportThis was reported by a user in the Cilium community, eg via Slack.This was reported by a user in the Cilium community, eg via Slack.kind/featureThis introduces new functionality.This introduces new functionality.pinnedThese issues are not marked stale by our issue bot.These issues are not marked stale by our issue bot.
Kubernetes allows to specify a session affinity for a Service: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.15/#sessionaffinityconfig-v1-core. Currently, only
clientIPis supported. This makes connections from a particular client to be routed to the same backend.The implementation of the affinity in
kube-proxyis based on therecentiptables module: https://github.com/kubernetes/kubernetes/blob/v1.15.3/pkg/proxy/iptables/proxier.go#L1163.