-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrated to jinja2, use pipfile and supervisord * Add kubernetes manifests, fix nginx logging, streamline the dockerfile * Use the upstream image name, fix typos * Switch to single quotes * Fix typos in template, update readme
- Loading branch information
Showing
16 changed files
with
749 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: multistreaming | ||
labels: | ||
app: multistreaming | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: multistreaming | ||
template: | ||
metadata: | ||
labels: | ||
app: multistreaming | ||
spec: | ||
containers: | ||
- name: multistreaming | ||
image: kamprath/multistreaming-server:latest | ||
imagePullPolicy: Always | ||
volumeMounts: | ||
- name: config-volume | ||
mountPath: /rtmp-configuration.json | ||
subPath: rtmp-configuration.json | ||
env: | ||
- name: MULTISTREAMING_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: multistreaming | ||
key: password | ||
- name: CONFIG_NGINX_DEBUG | ||
value: "true" | ||
- name: CONFIG_FFMPEG_LOG | ||
value: "true" | ||
- name: CONFIG_FFMPEG_MAX_MUXING_QUEUE_SIZE | ||
value: "4096" | ||
- name: CONFIG_DISABLE_RECORD | ||
value: "true" | ||
ports: | ||
- containerPort: 80 | ||
- containerPort: 1935 | ||
volumes: | ||
- name: config-volume | ||
configMap: | ||
name: multistreaming-config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: networking.k8s.io/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: multistreaming | ||
spec: | ||
rules: | ||
- host: multistreaming.ls90.co | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: multistreaming | ||
servicePort: 80 |
19 changes: 19 additions & 0 deletions
19
deployment-scripts/kubernetes-kustomize/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
nameSuffix: -v1 | ||
namespace: multistreaming | ||
commonLabels: | ||
app: multistreaming | ||
version: v1 | ||
resources: | ||
- deployment.yaml | ||
- service.yaml | ||
# - ingress.yaml # Optional, must configure the hostname if you need to expose the stat page as an ingress | ||
configMapGenerator: | ||
- name: multistreaming-config | ||
files: | ||
- rtmp-configuration.json | ||
secretGenerator: | ||
- name: multistreaming | ||
literals: | ||
- password=sekritPassword |
23 changes: 23 additions & 0 deletions
23
deployment-scripts/kubernetes-kustomize/rtmp-configuration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"endpoint": "live", | ||
"transcodeProfiles": { | ||
"720_60fps": { | ||
"pixels": "1280x720", | ||
"videoBitRate": "4500k", | ||
"videoFrameRate": 60 | ||
} | ||
}, | ||
"rebroadcastList": [ | ||
{ | ||
"name": "twitch", | ||
"platform": "twitch", | ||
"streamKey": "foobar" | ||
}, | ||
{ | ||
"name": "fbpage", | ||
"platform": "facebook", | ||
"streamKey": "secretKey", | ||
"transcodeProfile": "720_60fps" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: multistreaming | ||
spec: | ||
selector: | ||
app: multistreaming | ||
type: NodePort | ||
ports: | ||
- name: web | ||
protocol: TCP | ||
port: 80 | ||
targetPort: 80 | ||
nodePort: 30080 | ||
- name: rtmp | ||
protocol: TCP | ||
port: 1935 | ||
targetPort: 1935 | ||
nodePort: 31935 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
pylint = "*" | ||
black = "*" | ||
|
||
[packages] | ||
jinja2 = "*" | ||
|
||
[requires] | ||
python_version = "3.7" | ||
|
||
[pipenv] | ||
allow_prereleases = true |
Oops, something went wrong.