rancher会自动在ingress 的annotations 里面加入 field.cattle.io/xx注解
field.cattle.io/ingressState field.cattle.io/publicEndpoints
nginx.ingress.kubernetes.io/configuration-snippet
https://forums.rancher.com/t/service-discovery-am-i-missing-something/15224
https://github.com/rancher/rancher/issues/37299
nginx.ingress.kubernetes.io/auth-realm: Authentication Required - foo
nginx.ingress.kubernetes.io/auth-secret: es-auth
nginx.ingress.kubernetes.io/auth-secret-type: auth-map
nginx.ingress.kubernetes.io/auth-type: basic
https://www.mayanpeng.cn/archives/160.html
Solved. Rancher 2.4.4 uses Traefik as a load balancer. We need to put this annotation to make a redirect
traefik.ingress.kubernetes.io/redirect-entry-point: https
https://stackoverflow.com/questions/62262812/rancher-2-x-http-to-https-redirect
本文列出两种切入点示例:
nginx.ingress.kubernetes.io/configuration-snippet (用于插入 location 块代码段)
nginx.ingress.kubernetes.io/server-snippet (用于插入 server 块中的代码段)
https://blog.csdn.net/catoop/article/details/114013172