From 71c1a1675821fa9aace250b609ff3f02ee7b1ebe Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Thu, 8 Nov 2018 14:17:27 -0600 Subject: [PATCH] Prometheus: Add session affinity to ingress This adds session affinity to Prometheus's ingress. This allows for the use of cookies for Prometheus's session affinity Change-Id: I2e7e1d1b5120c1fb3ddecb5883845e46d61273de --- prometheus/values.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prometheus/values.yaml b/prometheus/values.yaml index 9fe5713fb..28ed48700 100644 --- a/prometheus/values.yaml +++ b/prometheus/values.yaml @@ -204,6 +204,9 @@ network: cluster: "nginx-cluster" annotations: nginx.ingress.kubernetes.io/rewrite-target: / + nginx.ingress.kubernetes.io/affinity: cookie + nginx.ingress.kubernetes.io/session-cookie-name: kube-ingress-session-prometheus + nginx.ingress.kubernetes.io/session-cookie-hash: sha1 node_port: enabled: false port: 30900