ingress sticky session

Deployment for testing

Ingress for testing

The image used is contained / whoamI, and the effect is as follows

After changing the number of pods to 3, you can easily get the following information. The request will rotate between the three pods

Just add annotation

apiVersion: extensions/v1beta1
kind: Ingress
  annotations: "cookie" "ingresscoookie" "sha1" "172800" "172800"
Send a Message