This project is a based off my project stafford-racing-twitter-bot built into a docker container and orchestrated by kubernetes. Kubernetes files include a cronjob for scheduling the script, a secret for securely storing api keys and a persistent volume and associated claim for storing the updated title used by the script.
The docker image can be found at dockerhub/stafford-app. All the specifics of the contents of the image and python app can be found at the stafford-racing-twitter-bot repo.
- Dockerfile - defines how the image is built.
- docker-compose.yaml - used to build the image from the dockerfile (change dockerhub repo name).
docker-compose build jmannix3/stafford-app
The necessary files to run this project with kubernetes are contained within the kubernetes folder.
- stafford-secrets-example.yaml - used to mount a volume with the secrets to the pod containing the docker container for the app.
- stafford-pv.yaml - create a necessary persistent volume.
- stafford-pvc.yaml - create the necessary persistent volume claim needed to store the file in the data folder.
- stafford-cj.yaml - contains the necessary information to access the secrets volume and persistant volume needed by the app.
kubectl create -f file-name.yaml