From 155d5c8b5ac0bdd1c9da1f8b732076ec0b5b5d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B6rn=20Sundragon?= Date: Fri, 26 Jun 2020 23:17:08 +0200 Subject: [PATCH] mongodb over tls db: retrywrites=false --- config/requirements.txt | 2 +- k8s/aks.yaml.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/requirements.txt b/config/requirements.txt index 41cc768..0f7f29c 100644 --- a/config/requirements.txt +++ b/config/requirements.txt @@ -1,4 +1,4 @@ flask flask_restful -pymongo +pymongo[tls] pyjwt[crypto] \ No newline at end of file diff --git a/k8s/aks.yaml.template b/k8s/aks.yaml.template index 8380b8c..fd2214f 100644 --- a/k8s/aks.yaml.template +++ b/k8s/aks.yaml.template @@ -20,7 +20,7 @@ spec: image: %IMAGE% env: - name: MONGO_URI - value: "mongodb://%s:%s@skojjt.mongo.cosmos.azure.com:10255/" + value: "mongodb://%s:%s@skojjt.mongo.cosmos.azure.com:10255/?ssl=true&retrywrites=false&replicaSet=globaldb&maxIdleTimeMS=120000&appName=@skojjt@" - name: MONGO_DATABASE value: "%NAMESPACE%" - name: MONGO_USER