~/talk

Containerized Deployments for your SPA and API

Talkat JSWorld Conference 2021 · 2021-02-22..02-27· [kubernetes, devops-and-delivery]
slides:none on file

Uses Vue CLI and dotnet CLI to build a simple weather-forecast SPA and API, then creates multi-stage Dockerfiles (Node+nginx for the front end, ASP.NET runtime for the API) and demonstrates three deployment patterns: one container one domain (works, but forces joint scaling), two containers two domains (works with CORS and baked-in env vars), and two containers one domain behind a Kubernetes Ingress (works and allows independent scaling). Live examples run successfully locally.

AI-written summary · about

  1. 0:00Introduction
  2. 1:41SPA and API separation
  3. 4:10Dev setup: webpack and proxy
  4. 7:16Hosting strategies for containers
  5. 9:29Single container on one domain
  6. 13:24Single-container pros and cons
  7. 15:11Two containers on two domains
  8. 16:32Configuring CORS headers and environment variables
  9. 19:46Scaling and env-specific builds
  10. 20:51Two containers on one domain with Kubernetes
  11. 23:23Kubernetes ingress config
  12. 26:36When to use two containers on one domain
  13. 27:17Server-rendered SPA considerations
  14. 28:40Monolith vs microservices
  15. 29:45Deployment strategies summary
  16. 30:28Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.