Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # kubectl get ing ingress-nginx-main -o yaml
- ...
- name: ingress-nginx-main
- namespace: default
- spec:
- rules:
- - host: stage2.mydomain.com
- http:
- paths:
- - backend:
- serviceName: service-1
- servicePort: 80
- path: /$
- pathType: ImplementationSpecific
- - backend:
- serviceName: service-2
- servicePort: 80
- path: /.+$
- pathType: ImplementationSpecific
- - backend:
- serviceName: service-2
- servicePort: 80
- path: /trade_ws$
- pathType: ImplementationSpecific
- - backend:
- serviceName: service-1
- servicePort: 80
- path: /trade
- pathType: ImplementationSpecific
- # kubectl get ing ingress-nginx-subroutes -o yaml
- ...
- name: ingress-nginx-subroutes
- namespace: default
- spec:
- rules:
- - host: stage2.mydomain.com
- http:
- paths:
- - backend:
- serviceName: service-1
- servicePort: 80
- path: /(ru|es|tr|id|cn|vn|ar|ko|zh|fl|hi)$
- pathType: ImplementationSpecific
- - backend:
- serviceName: service-1
- servicePort: 80
- path: /(orders|assets/overview|assets/balance|assets/history|assets/deposit|assets/withdraw|account/dashboard|account/security|account/api|account/security/google-authenticaton|account/security/anti-phishing|account/security/change-password|404|about-us|airdrop|bug-bounty|fee-schedule|forgot-password|login|markets|register|reset-password|two-factor|verify|static|_next)
- pathType: ImplementationSpecific
- - backend:
- serviceName: service-1
- servicePort: 80
- path: /(ru|es|tr|id|cn|vn|ar|ko|zh|fl|hi|en)/(orders|assets|/overview|assets/balance|assets/history|assets/deposit|assets/withdraw|account/dashboard|account/security|account/api|account/security/google-authenticaton|account/security/anti-phishing|account/security/change-password|404|about-us|airdrop|bug-bounty|fee-schedule|forgot-password|login|markets|register|reset-password|trade|two-factor|verify|static|_next)
- pathType: ImplementationSpecific
- Service-1
- location ~* "^/(ru|es|tr|id|cn|vn|ar|ko|zh|fl|hi|en)/(orders|assets|/overview|assets/balance|assets/history|assets/deposit|assets/withdraw|account/dashboard|account/security|account/api|acc
- ount/security/google-authenticaton|account/security/anti-phishing|account/security/change-password|404|about-us|airdrop|bug-bounty|fee-schedule|forgot-password|login|markets|register|reset-password|trade|t
- wo-factor|verify|static|_next)"
- Service-1
- location ~* "^/(orders|assets/overview|assets/balance|assets/history|assets/deposit|assets/withdraw|account/dashboard|account/security|account/api|account/security/google-authenticaton|acco
- unt/security/anti-phishing|account/security/change-password|404|about-us|airdrop|bug-bounty|fee-schedule|forgot-password|login|markets|register|reset-password|two-factor|verify|static|_next)"
- Service-1
- location ~* "^/(ru|es|tr|id|cn|vn|ar|ko|zh|fl|hi)$"
- Service-2
- location ~* "^/trade_ws$"
- Service-1
- location ~* "^/trade"
- Service-2
- location ~* "^/.+$"
- Service-1
- location ~* "^/$"
Add Comment
Please, Sign In to add comment