Skip to content

Commit

Permalink
Add livenessProbe and readinessProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
muratugureminoglu committed Jun 11, 2024
1 parent 04c36fd commit 8b20df3
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
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: 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-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
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

0 comments on commit 8b20df3

Please sign in to comment.