From 45f839f9010205846b849c56ac0c56772daf1d4d Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Fri, 16 Aug 2024 11:04:32 +0300 Subject: [PATCH 1/5] Add hostPath volume to Ant Media Server deployment --- kubernetes/ams-k8s-deployment-edge.yaml | 15 ++++++++++++--- kubernetes/ams-k8s-deployment-origin.yaml | 9 +++++++++ .../ams-k8s-deployment-edge.yaml | 11 ++++++++++- .../ams-k8s-deployment-origin.yaml | 11 ++++++++++- 4 files changed, 41 insertions(+), 5 deletions(-) diff --git a/kubernetes/ams-k8s-deployment-edge.yaml b/kubernetes/ams-k8s-deployment-edge.yaml index 6e4928d6..520dcf95 100644 --- a/kubernetes/ams-k8s-deployment-edge.yaml +++ b/kubernetes/ams-k8s-deployment-edge.yaml @@ -45,20 +45,29 @@ spec: # You may also need to add -u and -p parameters for # specifying mongodb username and passwords respectively args: ["-g", "true", "-s", "true", "-r", "true", "-m", "cluster", "-h", "mongo"] + volumeMounts: + - mountPath: /temp-data + name: temp-volume livenessProbe: httpGet: path: / port: 5080 - initialDelaySeconds: 10 + initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: httpGet: path: / port: 5080 - initialDelaySeconds: 10 + initialDelaySeconds: 30 periodSeconds: 10 resources: requests: cpu: 4000m + volumes: + - hostPath: + path: /temp-data + type: DirectoryOrCreate + name: temp-volume + # imagePullSecrets: - # - name: docker + # - name: docker \ No newline at end of file diff --git a/kubernetes/ams-k8s-deployment-origin.yaml b/kubernetes/ams-k8s-deployment-origin.yaml index 2b7f41c0..1bc1b52a 100644 --- a/kubernetes/ams-k8s-deployment-origin.yaml +++ b/kubernetes/ams-k8s-deployment-origin.yaml @@ -45,6 +45,9 @@ spec: # You may also need to add -u and -p parameters for # specifying mongodb username and passwords respectively args: ["-g", "true", "-s", "true", "-r", "true", "-m", "cluster", "-h", "mongo"] + volumeMounts: + - mountPath: /temp-data + name: temp-volume livenessProbe: httpGet: path: / @@ -60,5 +63,11 @@ spec: resources: requests: cpu: 4000m + volumes: + - hostPath: + path: /temp-data + type: DirectoryOrCreate + name: temp-volume + # imagePullSecrets: # - name: docker diff --git a/kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml b/kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml index f8948f84..23e00a75 100644 --- a/kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml +++ b/kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml @@ -34,6 +34,9 @@ spec: # specifying mongodb username and passwords respectively # args: ["-g", "true", "-s", "true", "-r", "true", "-m", "cluster", "-h", "mongo"] args: ["-r", "true", "-m", "cluster", "-h", "mongo"] + volumeMounts: + - mountPath: /temp-data + name: temp-volume livenessProbe: httpGet: path: / @@ -49,5 +52,11 @@ spec: resources: requests: cpu: 4000m + volumes: + - hostPath: + path: /temp-data + type: DirectoryOrCreate + name: temp-volume + # imagePullSecrets: - # - name: docker + # - name: docker \ No newline at end of file diff --git a/kubernetes/ams-with-turn-server/ams-k8s-deployment-origin.yaml b/kubernetes/ams-with-turn-server/ams-k8s-deployment-origin.yaml index 81ee2ca9..ae5f67b7 100644 --- a/kubernetes/ams-with-turn-server/ams-k8s-deployment-origin.yaml +++ b/kubernetes/ams-with-turn-server/ams-k8s-deployment-origin.yaml @@ -34,6 +34,9 @@ spec: # specifying mongodb username and passwords respectively # args: ["-g", "true", "-s", "true", "-r", "true", "-m", "cluster", "-h", "mongo"] args: ["-r", "true", "-m", "cluster", "-h", "mongo"] + volumeMounts: + - mountPath: /temp-data + name: temp-volume livenessProbe: httpGet: path: / @@ -49,5 +52,11 @@ spec: resources: requests: cpu: 4000m + volumes: + - hostPath: + path: /temp-data + type: DirectoryOrCreate + name: temp-volume + # imagePullSecrets: - # - name: docker + # - name: docker \ No newline at end of file From 696cd7fcdc20eefb7ddd47a5d9f0df5c2fd6e8bc Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Fri, 16 Aug 2024 17:36:30 +0300 Subject: [PATCH 2/5] Update mountPath parameter --- kubernetes/ams-k8s-deployment-edge.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/ams-k8s-deployment-edge.yaml b/kubernetes/ams-k8s-deployment-edge.yaml index 520dcf95..71b3d938 100644 --- a/kubernetes/ams-k8s-deployment-edge.yaml +++ b/kubernetes/ams-k8s-deployment-edge.yaml @@ -46,7 +46,7 @@ spec: # specifying mongodb username and passwords respectively args: ["-g", "true", "-s", "true", "-r", "true", "-m", "cluster", "-h", "mongo"] volumeMounts: - - mountPath: /temp-data + - mountPath: /tmp name: temp-volume livenessProbe: httpGet: @@ -70,4 +70,4 @@ spec: name: temp-volume # imagePullSecrets: - # - name: docker \ No newline at end of file + # - name: docker From 6f4e95747fa08207f78c9b3b39b966e556565ab6 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Fri, 16 Aug 2024 17:36:43 +0300 Subject: [PATCH 3/5] Update mountPath parameter --- kubernetes/ams-k8s-deployment-origin.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/ams-k8s-deployment-origin.yaml b/kubernetes/ams-k8s-deployment-origin.yaml index 1bc1b52a..ec0982c9 100644 --- a/kubernetes/ams-k8s-deployment-origin.yaml +++ b/kubernetes/ams-k8s-deployment-origin.yaml @@ -46,7 +46,7 @@ spec: # specifying mongodb username and passwords respectively args: ["-g", "true", "-s", "true", "-r", "true", "-m", "cluster", "-h", "mongo"] volumeMounts: - - mountPath: /temp-data + - mountPath: /tmp name: temp-volume livenessProbe: httpGet: From 2fc9f4bcddb92a9e875295cae4e547be35c3985e Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Fri, 16 Aug 2024 17:36:53 +0300 Subject: [PATCH 4/5] Update mountPath parameter --- kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml b/kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml index 23e00a75..33a289c2 100644 --- a/kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml +++ b/kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml @@ -35,7 +35,7 @@ spec: # args: ["-g", "true", "-s", "true", "-r", "true", "-m", "cluster", "-h", "mongo"] args: ["-r", "true", "-m", "cluster", "-h", "mongo"] volumeMounts: - - mountPath: /temp-data + - mountPath: /tmp name: temp-volume livenessProbe: httpGet: @@ -59,4 +59,4 @@ spec: name: temp-volume # imagePullSecrets: - # - name: docker \ No newline at end of file + # - name: docker From 9c73c4f2c0940e24ef831a89d9ce9aab2644e7f5 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Fri, 16 Aug 2024 17:37:04 +0300 Subject: [PATCH 5/5] Update mountPath parameter --- .../ams-with-turn-server/ams-k8s-deployment-origin.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/ams-with-turn-server/ams-k8s-deployment-origin.yaml b/kubernetes/ams-with-turn-server/ams-k8s-deployment-origin.yaml index ae5f67b7..43a0039c 100644 --- a/kubernetes/ams-with-turn-server/ams-k8s-deployment-origin.yaml +++ b/kubernetes/ams-with-turn-server/ams-k8s-deployment-origin.yaml @@ -35,7 +35,7 @@ spec: # args: ["-g", "true", "-s", "true", "-r", "true", "-m", "cluster", "-h", "mongo"] args: ["-r", "true", "-m", "cluster", "-h", "mongo"] volumeMounts: - - mountPath: /temp-data + - mountPath: /tmp name: temp-volume livenessProbe: httpGet: @@ -59,4 +59,4 @@ spec: name: temp-volume # imagePullSecrets: - # - name: docker \ No newline at end of file + # - name: docker