https://github.com/knlsharma/kubernetes-django-app
https://github.com/knlsharma/kubernetes-django-app
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/knlsharma/kubernetes-django-app
- Owner: Knlsharma
- Created: 2020-02-29T04:45:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T22:37:13.000Z (over 4 years ago)
- Last Synced: 2025-04-30T20:14:59.593Z (5 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)