diff --git a/deploy/kubernetes/webapp-ingress.yaml b/deploy/kubernetes/webapp-ingress.yaml index bace9e9..3849671 100644 --- a/deploy/kubernetes/webapp-ingress.yaml +++ b/deploy/kubernetes/webapp-ingress.yaml @@ -3,6 +3,8 @@ kind: Ingress metadata: name: webapp namespace: transcriptor + annotations: + kubernetes.io/ingress.class: addon-http-application-routing spec: ingressClassName: transcriptor-webapp.kubernetes.azure.com rules: diff --git a/production/api/app/app_settings.py b/production/api/app/app_settings.py index 9f54f17..8a36b87 100644 --- a/production/api/app/app_settings.py +++ b/production/api/app/app_settings.py @@ -42,6 +42,7 @@ def init_settings_file(settings_dir: str, app_environment: str = "development") # Load settings from environment specific file try: + print("app_environment: ", app_environment) settings_path = base_path / ('settings.' + app_environment + '.json') with open(settings_path, 'r') as data: settings_json.update(json.load(data)) @@ -66,6 +67,7 @@ def app_settings_factory_get(): setting_directory = os.path.join(os.path.dirname(__file__)) python_environment = os.environ.get("PYTHON_ENVIRONMENT", "development") + print("PYTHON_ENVIRONMENT: ", python_environment) app_settings = AppSettings(**(Settings() .overload(lambda app_settings : init_settings_file(setting_directory, python_environment)) .overload(init_settings_environments) diff --git a/production/api/app/settings.json b/production/api/app/settings.json index 779148d..72fae84 100644 --- a/production/api/app/settings.json +++ b/production/api/app/settings.json @@ -1,7 +1,7 @@ { - "redis_host": "localhost", + "redis_host": "redis", "redis_port": 6379, "url_slimfaas": "http://slimfaas:5000", - "server_host": "localhost", + "server_host": "0.0.0.0", "server_port": 8000 } \ No newline at end of file diff --git a/production/api/app/settings.production.json b/production/api/app/settings.production.json index 65f5e72..72fae84 100644 --- a/production/api/app/settings.production.json +++ b/production/api/app/settings.production.json @@ -1,7 +1,7 @@ { "redis_host": "redis", "redis_port": 6379, - "url_slimfaas": "http://slimfaas.transcriptor.svc.cluster.local", + "url_slimfaas": "http://slimfaas:5000", "server_host": "0.0.0.0", "server_port": 8000 } \ No newline at end of file diff --git a/production/ia-worker/app/settings.json b/production/ia-worker/app/settings.json index 779148d..72fae84 100644 --- a/production/ia-worker/app/settings.json +++ b/production/ia-worker/app/settings.json @@ -1,7 +1,7 @@ { - "redis_host": "localhost", + "redis_host": "redis", "redis_port": 6379, "url_slimfaas": "http://slimfaas:5000", - "server_host": "localhost", + "server_host": "0.0.0.0", "server_port": 8000 } \ No newline at end of file diff --git a/production/ia-worker/app/settings.production.json b/production/ia-worker/app/settings.production.json index 65f5e72..72fae84 100644 --- a/production/ia-worker/app/settings.production.json +++ b/production/ia-worker/app/settings.production.json @@ -1,7 +1,7 @@ { "redis_host": "redis", "redis_port": 6379, - "url_slimfaas": "http://slimfaas.transcriptor.svc.cluster.local", + "url_slimfaas": "http://slimfaas:5000", "server_host": "0.0.0.0", "server_port": 8000 } \ No newline at end of file