Skip to content

Instantly share code, notes, and snippets.

@markito
Created September 14, 2019 14:16
Show Gist options
  • Save markito/cfd50ca2519e08e1c835d014df057547 to your computer and use it in GitHub Desktop.
Save markito/cfd50ca2519e08e1c835d014df057547 to your computer and use it in GitHub Desktop.
# Demo Notes
## Container images
- markito/kiosk:v1
- markito/payment-service:v1
- markito/store-app:v1
## Create Kiosk Service (Generate QR Codes)
kn service create kiosk --image=markito/kiosk:v1 --requests-memory=100Mi --concurrency-limit=1
Test using: http://kiosk.rhte-live.apps.rhte19.markito.org/?productIds=[1,2,3,4]&amount=5000
## Payment Service (Process payment using Stripe)
kn service create payment-service --image=markito/payment-service:v1 --requests-memory=100Mi --concurrency-limit=1
## Create Store App (Web or Mobile app that process QR codes)
kn service create store-app --force --image=markito/store-app:v1 --requests-memory=300Mi --concurrency-limit=10 --env PAYMENT_SERVICE="http://payment-service.rhte-live.apps.rhte19.markito.org/"
## Autoscaling
wrk -t10 -c10 -d30s http://kiosk.rhte-live.apps.rhte19.markito.org/\?productIds\=\[1,2,3,4\]\&amount\=5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment