hnarayanan / kubernetes-django

Scalable and resilient Django with Kubernetes.
http://harishnarayanan.org/writing/kubernetes-django/
151 stars 34 forks source link

No External ip for service #12

Closed veris-neerajdhiman closed 7 years ago

veris-neerajdhiman commented 7 years ago
hnarayanan commented 7 years ago

Are you attempting to run this locally? And if so how?

You underlying infrastructure needs to have a mechanism to setup this external IP. It comes out of the box in cloud services like GKE and AWS, but is not obvious when e.g. you install Kubernetes on a local virtual machine.

veris-neerajdhiman commented 7 years ago

@hnarayanan yes I am runing kubernetes locally and pulled you django project image .

hnarayanan commented 7 years ago

This is non-trivial. You need to understand something called Ingress in Kubernetes (https://kubernetes.io/docs/concepts/services-networking/ingress/) and set it up on your local machine.

I am going to close this issue because this is beyond the scope of this simple tutorial (that primarily focusses on the Django bits), but please re-open this issue later if you're really struggling.

Or even better, contribute back detailed instructions on how you figured this out! 😃