FudanSELab / train-ticket

Train Ticket - A Benchmark Microservice System
http://139.196.152.44:32677
Apache License 2.0
712 stars 244 forks source link

update the voucher #272

Open JasonBourne1998 opened 1 year ago

JasonBourne1998 commented 1 year ago

Fix the 404 error (issue #271 ) on the voucher service by adding the cross-site function in the script. However, this is still something to do to get a 200 code:

  1. After deploying the voucher service, use the command "kubectl port-forward --address 0.0.0.0 service/ts-voucher-service 16101:16101" to forward the voucher port.
  2. Edit the corresponding ajax query URL in the ts-ui-dashboard ( url: "/getVoucher",) with the server's IP+16101/getVoucher. i.e: (http://server IP:16101/getVoucher)
  3. After deploying the UI service, use the command "kubectl port-forward --address 0.0.0.0 service/ts-ui-dashboard 31303:8080" to forward the UI port. (I use this to access "train-ticket" from an external server using the IP address. see issue #265 )
  4. Then you can get a 200 status code when browsing the voucher. image