Skip to content

Commit

Permalink
feat(deploy): test deployment to kubernetes azure
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Oct 30, 2024
1 parent bcf41d8 commit faafb22
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions deploy/kubernetes/webapp-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions production/api/app/app_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions production/api/app/settings.json
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 1 addition & 1 deletion production/api/app/settings.production.json
Original file line number Diff line number Diff line change
@@ -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
}
4 changes: 2 additions & 2 deletions production/ia-worker/app/settings.json
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 1 addition & 1 deletion production/ia-worker/app/settings.production.json
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit faafb22

Please sign in to comment.