Created
December 12, 2020 12:47
-
-
Save aryan9600/ffb98406319dac8e92a2379c1adc815c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: ingress-service | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/use-regex: 'true' | |
nginx.ingress.kubernetes.io/rewrite-target: /$2 # We need this to route requests to appropiate ClusterIP service | |
nginx.ingress.kubernetes.io/limit-connections: "7" # Limit the number of connections from a specific IP | |
nginx.ingress.kubernetes.io/limit-rpm: "8" # Limit the number of requests/min from a specific IP | |
nginx.ingress.kubernetes.io/limit-burst-multiplier: "10" # Specify the burst rate multiplier to serve requests properly | |
# https://www.nginx.com/blog/rate-limiting-nginx/#bursts | |
spec: | |
rules: | |
- http: | |
paths: | |
- path: /web1(/|$)(.*) | |
backend: | |
serviceName: ssrf-cluster-ip-service | |
servicePort: 2640 | |
- path: /web2(/|$)(.*) | |
backend: | |
serviceName: node-vm-cluster-ip-service | |
servicePort: 4000 | |
- path: /rami(/|$)(.*) | |
backend: | |
serviceName: dbsb-cluster-ip-service | |
servicePort: 2999 | |
- path: /advertisment(/|$)(.*) | |
backend: | |
serviceName: advertisment-auth-cluster-ip-service | |
servicePort: 3080 | |
- path: /haunted(/|$)(.*) | |
backend: | |
serviceName: php-cluster-ip-service | |
servicePort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment