owncast
This commit is contained in:
parent
dc6bf2e27d
commit
d5933d6be0
35
owncast/deployment.yaml
Normal file
35
owncast/deployment.yaml
Normal file
@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: owncast
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: owncast
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: owncast
|
||||
spec:
|
||||
volumes:
|
||||
- name: data
|
||||
hostPath:
|
||||
path: /data/owncast
|
||||
containers:
|
||||
- name: owncast
|
||||
image: owncast
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memeory: "32Mi"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "1"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: web
|
||||
- containerPort: 1935
|
||||
name: rtmp
|
||||
volumeMounts:
|
||||
- mountPath: /app/data
|
||||
name: data
|
18
owncast/ingress.yaml
Normal file
18
owncast/ingress.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: owncast
|
||||
labels:
|
||||
name: owncast
|
||||
spec:
|
||||
rules:
|
||||
- host: live.sense-t.eu.org
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: owncast-web
|
||||
port:
|
||||
number: 8080
|
14
owncast/kustomization.yaml
Normal file
14
owncast/kustomization.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: default
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service-http.yaml
|
||||
- service-rtmp.yaml
|
||||
- ingress.yaml
|
||||
images:
|
||||
- name: owncast
|
||||
newName: owncast/owncast
|
||||
newTag: '0.1.0'
|
14
owncast/service-http.yaml
Normal file
14
owncast/service-http.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: owncast-web
|
||||
spec:
|
||||
selector:
|
||||
app: owncast
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: web
|
||||
ipFamilyPolicy: PreferDualStack
|
||||
ipFamilies:
|
||||
- IPv4
|
||||
- IPv6
|
15
owncast/service-rtmp.yaml
Normal file
15
owncast/service-rtmp.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: owncast-rtmp
|
||||
spec:
|
||||
selector:
|
||||
app: owncast
|
||||
ports:
|
||||
- port: 1935
|
||||
targetPort: rtmp
|
||||
type: LoadBalancer
|
||||
ipFamilyPolicy: PreferDualStack
|
||||
ipFamilies:
|
||||
- IPv4
|
||||
- IPv6
|
Loading…
Reference in New Issue
Block a user