Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add livenessProbe and readinessProbe #300

Merged
merged 8 commits into from
Jun 24, 2024
12 changes: 12 additions & 0 deletions kubernetes/ams-k8s-deployment-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions kubernetes/ams-k8s-deployment-origin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions kubernetes/ams-k8s-ingress-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions kubernetes/ams-k8s-ingress-origin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions kubernetes/ams-with-turn-server/ams-k8s-deployment-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions kubernetes/ams-with-turn-server/ams-k8s-deployment-origin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions kubernetes/ams-with-turn-server/ams-k8s-ingress-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading