Customize Kubenretes Ingress
Customizing Ingress rules for exchanges on Kubernetes
Once you run HollaEx CLI commands with --kube
flag, HollaEx CLI will automatically generate Ingress rules for Kubernetes with a default form. You can check these generated templates under templates/kubernetes/<EXCHANGE_NAME>-ingress.yaml>
.
Default Ingress should be similar to the examples down below.
The HollaEx CLI generates Ingress rules which compatible with kubernetes/nginx-ingress
.
If you are planning to use a different Ingress controller, please customize annotations and detailed values based on your own ones.
Nginx rate limit setups on nginx.ingress.kubernetes.io/configuration-snippet
are following pre-defined rate limit zone setups on HollaEx's own Ingress controller.
api : 4r/s
Please reference these values and add them to your own Ingress controller. For example, kubernetes/nginx-ingress
support annotation called http-snippet
to let users inject code snippets on Nginx.conf.
Guide for the nginxinc/kubernetes-ingress
users.
nginxinc/kubernetes-ingress
users.If you are planning to use nginxinc/kubernetes-ingress
, certain annotations should be modified as shown below.
If you are planning to use split Ingress rules like the example above, Consider using nginx.org/mergeable-ingress-type.
nginx.ingress.kubernetes.io/proxy-body-size
->nginx.org/client-max-body-size
nginx.ingress.kubernetes.io/configuration-snippet
->nginx.org/location-snippets
Last updated