Workshop for deploying classic simple application
Small project SpringBoot/Angular just for testing purpose
Goal
Deploy this small project into a Kubernetes cluster
Technologies ?
Choose what you want as long as you can go quickly (nodejs, java, golang, whatever)
Features expected
Backend
Your app need the following features for the rest of our workshop:
- can read a configuration where we can set up the following parameter: the welcome message content, application name
and the version. WARNING: those parameters should be able to read from a file and/or from environment variables.
- can get the host where the app is deployed
- expose those REST endpoints:
- /info: a message with a payload containing the host name alongside with the version (aka: vDev running on
localhost)
- /welcome: a message with a payload containing the welcome message content (ex: Hello world!)
Optional:
- /whoami: a message with a payload containing only the host name (ex: localhost)
- /build: a message with a payload containing only the version (ex: vDev)
Frontend
Your app need the following features for the rest of our workshop:
How
- Create backend and frontend
- Create docker image for
backend
and frontend
- Push to a docker registry
- Write kubernetes descriptor for
backend
and frontend
- Apply descriptors
Correction
You can use this repository code from step 1 to step 7 (use tags 😉)
Other tutorial / Resources
- Developing and pacakging nodejs docker
- Deploying Node.js apps in a local Kubernetes cluster
- Scaling Node.js apps on Kubernetes
- Deploying Node.js apps in EKS