Skip to content

Support Service sessionAffinity #9076

@brb

Description

@brb

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 clientIP is supported. This makes connections from a particular client to be routed to the same backend.

The implementation of the affinity in kube-proxy is based on the recent iptables module: https://github.com/kubernetes/kubernetes/blob/v1.15.3/pkg/proxy/iptables/proxier.go#L1163.

Metadata

Metadata

Assignees

Labels

area/k8sImpacts the kubernetes API, or kubernetes -> cilium internals translation layers.kind/community-reportThis was reported by a user in the Cilium community, eg via Slack.kind/featureThis introduces new functionality.pinnedThese issues are not marked stale by our issue bot.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions