An open API service indexing awesome lists of open source software.

https://github.com/knlsharma/kubernetes-django-app


https://github.com/knlsharma/kubernetes-django-app

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# kubernetes-django-app
Sample Django application deployed with [Kubernetes](https://kubernetes.io)

## Deployment

- Build app image `docker build -t kubernetes-django .`
- Create deployment `kubectl apply -f deployment.yml`
- Expose service `kubectl expose deploy kubernetes-django-deployment --type=NodePort`
- Get mapped port for the app `kubectl get service`
- Visit `http://localhost:` in the browser.

## Deployment of new versions of the application
- Make changes in to the app
- `docker build -t kubernetes-django:v2 .`
- Update image at the `deployment.yml` file `spec.template.spec.containers.image` to the `kubernetes-django:v2`
- `kubectl apply -f deployment.yml`
- App should be updated to the new version now.

## Helpful links
- [Introduction to Kubernetes - Docker for Mac/Windows](https://www.youtube.com/watch?v=6NG_cUeuNhU)
- [Kubernetes Introduction by Kevin Simper](https://www.kevinsimper.dk/posts/kubernetes-introduction)