Git Product home page Git Product logo

django_with_k8s's Introduction

Django_with_k8s

To start the Kubernetes cluster with a specific version using minikube, run the command: $ minikube start --kubernetes-version=v1.19.2 Setting the default kubectl context to minikube i.e. kubectl config use-context minikube

The status of the minikube cluster can be determined by running: $ minikube statushost: Running kubelet: Running apiserver: Running kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100 And to confirm the kubectl context, the command is: $ kubectl config current-context minikube

The docker command line in the host machine can be configured to utilize the docker daemon within minikube by running: $ eval $(minikube docker-env)

To confirm: $ docker info | grep Name Name: minikube ehsan@ehsan-desktop:~/django_with_k8s$ cat Dockerfile FROM python:3 ENV PYTHONUNBUFFERED=1 WORKDIR /code COPY requirements.txt /code/ RUN pip install -r requirements.txt COPY . /code/ CMD python manage.py runserver 0.0.0.0:8000 docker build -t k8_django_minikube:1.0 . kubectl run kubernetes-django --image=k8_django_minikube –port=8000

django_with_k8s's People

Contributors

ehsanl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.