Skip to content

Commit

Permalink
docs: Document requirements for graceful termination feature
Browse files Browse the repository at this point in the history
Signed-off-by: Aditi Ghag <aditi@cilium.io>
  • Loading branch information
aditighag committed Nov 12, 2021
1 parent db7a1f7 commit 7100237
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Documentation/gettingstarted/kubeproxy-free.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,22 @@ The current Cilium kube-proxy replacement mode can also be introspected through
$ kubectl exec -it -n kube-system cilium-xxxxx -- cilium status | grep KubeProxyReplacement
KubeProxyReplacement: Strict [eth0 (DR)]
Graceful Termination
********************

Cilium's eBPF kube-proxy replacement supports graceful termination of service
endpoints deletion. The feature requires at least Kubernetes version 1.20, and
the feature gate ``EndpointSliceTerminatingCondition`` needs to be enabled.
By default, the Cilium agent then detects such terminating Pod state. If needed,
the feature can be disabled with the configuration option ``enable-k8s-terminating-endpoint``.
When Cilium agent receives a Kubernetes update event for a terminating endpoint,
the datapath state for the endpoint is removed such that it won't service new
connections, but the endpoint's active connections are able to terminate
gracefully. The endpoint state is fully removed when the agent receives
a Kubernetes delete event for the endpoint. The `Kubernetes
pod termination <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination>`_
documentation contains more background on the behavior and configuration using ``terminationGracePeriodSeconds``.

.. _session-affinity:

Session Affinity
Expand Down

0 comments on commit 7100237

Please sign in to comment.