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