This is the companion repository with some sample code as used in the video. It has working code for uploading and retrieval of movies. Why not write the rest?
Setup
- Connect to a local kubernetes cluster
- Run the postgres installer
./scripts/install-postgres.sh
- Either run the API locally or push your own docker image and modify the helm chart
Post a movie
curl -X POST http://localhost:8081/movie -H 'Content-Type: application/json' -d '{
"title": "Avengers: Age of Ultron",
"year": 2016,
"cast": [
"Robert Downey, Jr.",
"Chris Evans",
"Chris Hemsworth",
"Mark Ruffalo"
],
"genres": [
"Action"
]
}'
Retrieve a movie
curl localhost:8081/movies/year/2016
[ENH] Multi-stage docker-compose to package the app
I went through your video tutorial. That was really great explaining
DOCKERFILE
andhelm chart
. But I stick toDOCKER COMPOSE
here as I am already impressed and inspired through your tutorials. I have seen multi-stage dockerfile to support docker-compose where when any database like mysql is concerned, a special stage is defined. I have been very curious to see on how to create such stages and ship the app.I can't wait to see you next up explaining on it.
[ENH-IDEA] Attaching PV to deployment
I have seen a few examples on kubernetes docs, for stateful application, like mysql, postgres, etc., we can create PV and PVC and define it on deployment manifest and helm chart as well.
As a user, I want to deploy PV to my cluster.
Can we refactor this project and allow PV to be attached?
Plz suggest here if any. It'll be great if you can create a tutorial on how to create PV and PVC or suggest here. Thanks. 😄