Configuration file example

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
   name: ingress-wordpress
   namespace: kube-example
   annotations:
     nginx.ingress.kubernetes.io/affinity: "cookie"
     nginx.ingress.kubernetes.io/session-cookie-name: "route"
     nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
     nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
spec:
   rules:
   -host: www.elephdev.com #Binding the domain name and node IP to the host file of the access node
     http:
       paths:
       -path:
         backend:
           serviceName: wordpress
           servicePort: 80

Support the following configuration items

  • nginx.ingress.kubernetes.io/affinity

  • nginx.ingress.kubernetes.io/affinity-mode

  • nginx.ingress.kubernetes.io/session-cookie-name

  • nginx.ingress.kubernetes.io/session-cookie-path

  • nginx.ingress.kubernetes.io/session-cookie-samesite

  • nginx.ingress.kubernetes.io/session-cookie-conditional-samesite-none

  • nginx.ingress.kubernetes.io/session-cookie-max-age

  • nginx.ingress.kubernetes.io/session-cookie-expires

  • nginx.ingress.kubernetes.io/session-cookie-change-on-failure

Likes(1)

Comment list count 0 Comments

No Comments