A blog application made on Django.
Added container support.
- Dockerfiles are located in docker dir
- Deployment helper files are in deploy dir
./deploy/docker/plain-docker.sh
docker-compose up -f ./deploy/docker/docker-compose.yaml
- creates a namespace
sample-app
and uses that namespace for all the resources
# update 'StorageClassName' in 'deploy.yaml' and run
kubectl create -f ./deploy/kubernetes/deploy.yaml
# update 'host' in ingress.yaml' and run
kubectl create -f ./deploy/kubernetes/ingress.yaml
oc create -f ./deploy/kubernetes/openshift-route.yaml
- default django admin username and password are
admin
/admin
- your host firewall should allow inbound access to the port
8080
- user portal: http://your-host-ip:8080
- admin portal: http://your-host-ip:8080/admin
- user portal: http://frontend.your-cluster-domain.com
- admin portal: http://frontend.your-cluster-domain.com/admin