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 hostPath volume to Ant Media Server deployment #313

Merged
merged 5 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading