3
0

2-TraefikRoutes.yaml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. ---
  2. apiVersion: traefik.containo.us/v1alpha1
  3. kind: IngressRoute
  4. metadata:
  5. name: https-auction-auc
  6. namespace: default
  7. spec:
  8. entryPoints:
  9. - websecure
  10. routes:
  11. - kind: Rule
  12. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/auc/admin`)
  13. middlewares:
  14. - name: auction-app-strip
  15. - name: jwt-token-validation
  16. services:
  17. - name: auction-auc
  18. port: 80
  19. - kind: Rule
  20. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/auc`)
  21. middlewares:
  22. - name: auction-app-strip
  23. services:
  24. - name: auction-auc
  25. port: 80
  26. tls:
  27. secretName: auction-dev.hobbystocks.cn
  28. ---
  29. apiVersion: traefik.containo.us/v1alpha1
  30. kind: IngressRoute
  31. metadata:
  32. name: https-auction-bid
  33. namespace: default
  34. spec:
  35. entryPoints:
  36. - websecure
  37. routes:
  38. - kind: Rule
  39. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/bid/admin`)
  40. middlewares:
  41. - name: auction-app-strip
  42. - name: jwt-token-validation
  43. services:
  44. - name: auction-bid
  45. port: 80
  46. - kind: Rule
  47. match: Host(`auction-dev.hobbystocks.cn`) && Path(`/bid/pub/myList`,`/bid/pub/add`, `/bid/pub/mine`, `/bid/pub/myLots`, `/bid/pub/testUser`)
  48. middlewares:
  49. - name: auction-app-strip
  50. - name: jwt-token-validation
  51. services:
  52. - name: auction-bid
  53. port: 80
  54. - kind: Rule
  55. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/bid`)
  56. middlewares:
  57. - name: auction-app-strip
  58. services:
  59. - name: auction-bid
  60. port: 80
  61. tls:
  62. secretName: auction-dev.hobbystocks.cn
  63. ---
  64. apiVersion: traefik.containo.us/v1alpha1
  65. kind: IngressRoute
  66. metadata:
  67. name: https-auction-deposit
  68. namespace: default
  69. spec:
  70. entryPoints:
  71. - websecure
  72. routes:
  73. - kind: Rule
  74. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/deposit/admin`,`/deposit/pub`)
  75. middlewares:
  76. - name: auction-app-strip
  77. - name: jwt-token-validation
  78. services:
  79. - name: auction-deposit
  80. port: 80
  81. - kind: Rule
  82. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/deposit`)
  83. middlewares:
  84. - name: auction-app-strip
  85. services:
  86. - name: auction-deposit
  87. port: 80
  88. tls:
  89. secretName: auction-dev.hobbystocks.cn
  90. ---
  91. apiVersion: traefik.containo.us/v1alpha1
  92. kind: IngressRoute
  93. metadata:
  94. name: https-auction-pub
  95. namespace: default
  96. spec:
  97. entryPoints:
  98. - websecure
  99. routes:
  100. - kind: Rule
  101. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/pub/admin`)
  102. middlewares:
  103. - name: auction-app-strip
  104. - name: jwt-token-validation
  105. services:
  106. - name: auction-pub
  107. port: 80
  108. - kind: Rule
  109. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/pub`)
  110. middlewares:
  111. - name: auction-app-strip
  112. services:
  113. - name: auction-pub
  114. port: 80
  115. tls:
  116. secretName: auction-dev.hobbystocks.cn
  117. ---
  118. apiVersion: traefik.containo.us/v1alpha1
  119. kind: IngressRoute
  120. metadata:
  121. name: https-auction-order
  122. namespace: default
  123. spec:
  124. entryPoints:
  125. - websecure
  126. routes:
  127. - kind: Rule
  128. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/order/admin`,`/order/pub`)
  129. middlewares:
  130. - name: auction-app-strip
  131. - name: jwt-token-validation
  132. services:
  133. - name: auction-order
  134. port: 80
  135. - kind: Rule
  136. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/order`)
  137. middlewares:
  138. - name: auction-app-strip
  139. services:
  140. - name: auction-order
  141. port: 80
  142. tls:
  143. secretName: auction-dev.hobbystocks.cn
  144. ---
  145. apiVersion: traefik.containo.us/v1alpha1
  146. kind: IngressRoute
  147. metadata:
  148. name: https-auction-pay
  149. namespace: default
  150. spec:
  151. entryPoints:
  152. - websecure
  153. routes:
  154. - kind: Rule
  155. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/pay/admin`)
  156. middlewares:
  157. - name: auction-app-strip
  158. - name: jwt-token-validation
  159. services:
  160. - name: auction-pay
  161. port: 80
  162. - kind: Rule
  163. match: Host(`auction-dev.hobbystocks.cn`) && PathPrefix(`/pay`)
  164. middlewares:
  165. - name: auction-app-strip
  166. services:
  167. - name: auction-pay
  168. port: 80
  169. tls:
  170. secretName: auction-dev.hobbystocks.cn