You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2023. It is now read-only.
We have two options for how to run the frontend application in Kubernetes.
248
+
249
+
1) Servce the static content from Django
250
+
2) Serve the static content from nginx and use another service.
251
+
252
+
Serving the static content from Django was not working, so I'm building another deployment/service for frontend. For this to work, we need to tell Quasar about the address for the Django service. There are two ways to do this:
253
+
254
+
1) DNS
255
+
2) Environment variables
256
+
257
+
258
+
## Use environment variables to get service IP/Host
259
+
260
+
This won't be possible with out static front end site.
261
+
262
+
## Use DNS for services
263
+
264
+
DNS will be easier since we are building static assets outside of the context of Kubernetes and the environment variables that it injects at runtime.
We need to set the `DOMAIN_NAME` environment variable to `kubernetes-django-service`, and also set the port, and we should be able to access the backend from frontend AJAX calls.
0 commit comments