Small project SpringBoot/Angular just for testing purpose
Deploy this small project into a Kubernetes cluster
Choose what you want as long as you can go quickly (nodejs, java, golang, whatever)
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)
Your app need the following features for the rest of our workshop:
-
read a configuration file where we can set up
- application version,
- api rest endpoint,
- environment name
- featre flip a polling to our backend rest endpoint /info.
-
a webpage displaying the main content:
- welcome message from our backend (/welcome)
- backend information (/info). When polling disabled, only display once /info otherwise display every 5s /info
- Create backend and frontend
- Create docker image for
backend
andfrontend
- Push to a docker registry
- Write kubernetes descriptor for
backend
andfrontend
- Apply descriptors
You can use this repository code from step 1 to step 7 (use tags 😉)