A sample (and simple) Python/flask application for Kubernetes for Developers
python exampleapp.py
python exampleapp.py [version]
- version
- v1, default.
- v2
By default, will workdir ./feature.flags
as configuration file, you can also use CONFIG_FILE
environment to overwrite path.
Example config:
[features]
greeting=hello
debug=True
db=redis-service
db_pass=
(this may need to be done to resolve any underlying image issues, such as security updates or vulnerabilities found and resolved in Alpine)
The container images associated with this repo are available for review at https://quay.io/repository/kubernetes-for-developers/flask?tab=tags
git checkout 0.1.1
docker build -t quay.io/kubernetes-for-developers/flask:0.1.1 .
git checkout 0.2.0
docker build -t quay.io/kubernetes-for-developers/flask:0.2.0 .
git checkout 0.3.0
docker build -t quay.io/kubernetes-for-developers/flask:0.3.0 .
git checkout 0.4.0
docker build -t quay.io/kubernetes-for-developers/flask:0.4.0 .
git checkout 0.5.0
docker build -t quay.io/kubernetes-for-developers/flask:0.5.0 .
git checkout 0.6.0
docker build -t quay.io/kubernetes-for-developers/flask:0.6.0 .
git checkout 0.7.0
docker build -t quay.io/kubernetes-for-developers/flask:0.7.0 .
git checkout master
docker build -t quay.io/kubernetes-for-developers/flask:latest .
docker push quay.io/kubernetes-for-developers/flask