Skip to content

Commit

Permalink
Merge pull request #313 from ant-media/add-temp-storage-for-kubernetes
Browse files Browse the repository at this point in the history
Add hostPath volume to Ant Media Server deployment
  • Loading branch information
mekya authored Aug 21, 2024
2 parents cd3d016 + 9c73c4f commit 5565d95
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
13 changes: 11 additions & 2 deletions kubernetes/ams-k8s-deployment-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: /tmp
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
9 changes: 9 additions & 0 deletions kubernetes/ams-k8s-deployment-origin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: /tmp
name: temp-volume
livenessProbe:
httpGet:
path: /
Expand All @@ -60,5 +63,11 @@ spec:
resources:
requests:
cpu: 4000m
volumes:
- hostPath:
path: /temp-data
type: DirectoryOrCreate
name: temp-volume

# imagePullSecrets:
# - name: docker
9 changes: 9 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,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: /tmp
name: temp-volume
livenessProbe:
httpGet:
path: /
Expand All @@ -49,5 +52,11 @@ spec:
resources:
requests:
cpu: 4000m
volumes:
- hostPath:
path: /temp-data
type: DirectoryOrCreate
name: temp-volume

# imagePullSecrets:
# - name: docker
Original file line number Diff line number Diff line change
Expand Up @@ -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: /tmp
name: temp-volume
livenessProbe:
httpGet:
path: /
Expand All @@ -49,5 +52,11 @@ spec:
resources:
requests:
cpu: 4000m
volumes:
- hostPath:
path: /temp-data
type: DirectoryOrCreate
name: temp-volume

# imagePullSecrets:
# - name: docker

0 comments on commit 5565d95

Please sign in to comment.