diff --git a/kubernetes/ams-k8s-deployment-edge.yaml b/kubernetes/ams-k8s-deployment-edge.yaml index 2289bf36..6e4928d6 100644 --- a/kubernetes/ams-k8s-deployment-edge.yaml +++ b/kubernetes/ams-k8s-deployment-edge.yaml @@ -45,6 +45,18 @@ 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"] + livenessProbe: + httpGet: + path: / + port: 5080 + initialDelaySeconds: 10 + periodSeconds: 10 + readinessProbe: + httpGet: + path: / + port: 5080 + initialDelaySeconds: 10 + periodSeconds: 10 resources: requests: cpu: 4000m diff --git a/kubernetes/ams-k8s-deployment-origin.yaml b/kubernetes/ams-k8s-deployment-origin.yaml index df62784e..2b7f41c0 100644 --- a/kubernetes/ams-k8s-deployment-origin.yaml +++ b/kubernetes/ams-k8s-deployment-origin.yaml @@ -45,6 +45,18 @@ 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"] + livenessProbe: + httpGet: + path: / + port: 5080 + initialDelaySeconds: 30 + periodSeconds: 10 + readinessProbe: + httpGet: + path: / + port: 5080 + initialDelaySeconds: 30 + periodSeconds: 10 resources: requests: cpu: 4000m diff --git a/kubernetes/ams-k8s-ingress-edge.yaml b/kubernetes/ams-k8s-ingress-edge.yaml index aa978215..cfae5895 100644 --- a/kubernetes/ams-k8s-ingress-edge.yaml +++ b/kubernetes/ams-k8s-ingress-edge.yaml @@ -10,6 +10,7 @@ metadata: nginx.ingress.kubernetes.io/session-cookie-max-age: "172800" nginx.org/websocket-services: "ant-media-server" nginx.ingress.kubernetes.io/websocket-services : "ant-media-server" + nginx.ingress.kubernetes.io/proxy-body-size: "0m" spec: rules: - host: test.antmedia.cloud diff --git a/kubernetes/ams-k8s-ingress-origin.yaml b/kubernetes/ams-k8s-ingress-origin.yaml index 29df4e16..651ac640 100644 --- a/kubernetes/ams-k8s-ingress-origin.yaml +++ b/kubernetes/ams-k8s-ingress-origin.yaml @@ -10,6 +10,7 @@ metadata: nginx.ingress.kubernetes.io/session-cookie-max-age: "172800" nginx.org/websocket-services: "ant-media-server" nginx.ingress.kubernetes.io/websocket-services : "ant-media-server" + nginx.ingress.kubernetes.io/proxy-body-size: "0m" spec: rules: - host: test.antmedia.cloud 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 9b6130b9..f8948f84 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,18 @@ 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"] + livenessProbe: + httpGet: + path: / + port: 5080 + initialDelaySeconds: 30 + periodSeconds: 10 + readinessProbe: + httpGet: + path: / + port: 5080 + initialDelaySeconds: 30 + periodSeconds: 10 resources: requests: cpu: 4000m 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 5146252e..81ee2ca9 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,18 @@ 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"] + livenessProbe: + httpGet: + path: / + port: 5080 + initialDelaySeconds: 30 + periodSeconds: 10 + readinessProbe: + httpGet: + path: / + port: 5080 + initialDelaySeconds: 30 + periodSeconds: 10 resources: requests: cpu: 4000m diff --git a/kubernetes/ams-with-turn-server/ams-k8s-ingress-edge.yaml b/kubernetes/ams-with-turn-server/ams-k8s-ingress-edge.yaml index 7a8fb870..787536dd 100644 --- a/kubernetes/ams-with-turn-server/ams-k8s-ingress-edge.yaml +++ b/kubernetes/ams-with-turn-server/ams-k8s-ingress-edge.yaml @@ -8,6 +8,7 @@ metadata: nginx.ingress.kubernetes.io/session-cookie-name: "route" nginx.ingress.kubernetes.io/session-cookie-expires: "172800" nginx.ingress.kubernetes.io/session-cookie-max-age: "172800" + nginx.ingress.kubernetes.io/proxy-body-size: "0m" spec: rules: - host: edge.antmedia.cloud diff --git a/kubernetes/ams-with-turn-server/ams-k8s-ingress-origin.yaml b/kubernetes/ams-with-turn-server/ams-k8s-ingress-origin.yaml index 97f9c213..97d1d12e 100644 --- a/kubernetes/ams-with-turn-server/ams-k8s-ingress-origin.yaml +++ b/kubernetes/ams-with-turn-server/ams-k8s-ingress-origin.yaml @@ -8,6 +8,7 @@ metadata: nginx.ingress.kubernetes.io/session-cookie-name: "route" nginx.ingress.kubernetes.io/session-cookie-expires: "172800" nginx.ingress.kubernetes.io/session-cookie-max-age: "172800" + nginx.ingress.kubernetes.io/proxy-body-size: "0m" spec: rules: - host: origin.antmedia.cloud