From d5933d6be0e0ccb7a4d91c2d97bda8fd25e32c30 Mon Sep 17 00:00:00 2001 From: Sense T Date: Wed, 6 Sep 2023 04:40:49 +0000 Subject: [PATCH] owncast --- owncast/deployment.yaml | 35 +++++++++++++++++++++++++++++++++++ owncast/ingress.yaml | 18 ++++++++++++++++++ owncast/kustomization.yaml | 14 ++++++++++++++ owncast/service-http.yaml | 14 ++++++++++++++ owncast/service-rtmp.yaml | 15 +++++++++++++++ 5 files changed, 96 insertions(+) create mode 100644 owncast/deployment.yaml create mode 100644 owncast/ingress.yaml create mode 100644 owncast/kustomization.yaml create mode 100644 owncast/service-http.yaml create mode 100644 owncast/service-rtmp.yaml diff --git a/owncast/deployment.yaml b/owncast/deployment.yaml new file mode 100644 index 0000000..4aaeeb0 --- /dev/null +++ b/owncast/deployment.yaml @@ -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 diff --git a/owncast/ingress.yaml b/owncast/ingress.yaml new file mode 100644 index 0000000..5048cdd --- /dev/null +++ b/owncast/ingress.yaml @@ -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 diff --git a/owncast/kustomization.yaml b/owncast/kustomization.yaml new file mode 100644 index 0000000..c1a0715 --- /dev/null +++ b/owncast/kustomization.yaml @@ -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' \ No newline at end of file diff --git a/owncast/service-http.yaml b/owncast/service-http.yaml new file mode 100644 index 0000000..20a0b22 --- /dev/null +++ b/owncast/service-http.yaml @@ -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 \ No newline at end of file diff --git a/owncast/service-rtmp.yaml b/owncast/service-rtmp.yaml new file mode 100644 index 0000000..d40a05c --- /dev/null +++ b/owncast/service-rtmp.yaml @@ -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