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
This commit is contained in:
Steve Wilkerson 2018-11-08 14:17:27 -06:00
parent 8e369d2c9c
commit 71c1a16758

View File

@ -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