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

feat(kubernetes): install go2rtc #938

Merged
merged 1 commit into from
Jun 7, 2024
Merged

feat(kubernetes): install go2rtc #938

merged 1 commit into from
Jun 7, 2024

Conversation

martinohmann
Copy link
Owner

No description provided.

@github-actions github-actions bot added area/kubernetes Changes made in the kubernetes directory cluster/main labels Jun 7, 2024
Copy link

github-actions bot commented Jun 7, 2024

kustomization changes in kubernetes/main

--- kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/go2rtc

+++ kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/go2rtc

@@ -0,0 +1,32 @@

+---
+apiVersion: kustomize.toolkit.fluxcd.io/v1
+kind: Kustomization
+metadata:
+  labels:
+    kustomize.toolkit.fluxcd.io/name: cluster-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: go2rtc
+  namespace: flux-system
+spec:
+  commonMetadata:
+    labels:
+      app.kubernetes.io/name: go2rtc
+  decryption:
+    provider: sops
+    secretRef:
+      name: sops-age
+  interval: 2h
+  path: ./kubernetes/main/apps/default/go2rtc/app
+  postBuild:
+    substituteFrom:
+    - kind: Secret
+      name: cluster-secrets
+  prune: true
+  retryInterval: 1m
+  sourceRef:
+    kind: GitRepository
+    name: home-kubernetes
+  targetNamespace: default
+  timeout: 5m
+  wait: false
+
--- kubernetes/main/apps/default/go2rtc/app Kustomization: flux-system/go2rtc HelmRelease: default/go2rtc

+++ kubernetes/main/apps/default/go2rtc/app Kustomization: flux-system/go2rtc HelmRelease: default/go2rtc

@@ -0,0 +1,85 @@

+---
+apiVersion: helm.toolkit.fluxcd.io/v2
+kind: HelmRelease
+metadata:
+  labels:
+    app.kubernetes.io/name: go2rtc
+    kustomize.toolkit.fluxcd.io/name: go2rtc
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: go2rtc
+  namespace: default
+spec:
+  chart:
+    spec:
+      chart: app-template
+      sourceRef:
+        kind: HelmRepository
+        name: bjw-s
+        namespace: flux-system
+      version: 3.2.1
+  install:
+    remediation:
+      retries: 3
+  interval: 2h
+  uninstall:
+    keepHistory: false
+  upgrade:
+    cleanupOnFail: true
+    remediation:
+      retries: 3
+  values:
+    controllers:
+      go2rtc:
+        containers:
+          app:
+            image:
+              repository: ghcr.io/alexxit/go2rtc
+              tag: 1.9.3@sha256:aff58d47b5c2802c59e9514d3f58f5c8e935fbf7200de80566eb7dcb6a84358c
+            probes:
+              liveness:
+                enabled: false
+              readiness:
+                enabled: false
+              startup:
+                enabled: false
+    ingress:
+      app:
+        annotations:
+          gethomepage.dev/enabled: 'false'
+        className: internal
+        enabled: true
+        hosts:
+        - host: go2rtc.18b.haus
+          paths:
+          - path: /
+            service:
+              identifier: app
+              port: api
+        tls:
+        - hosts:
+          - go2rtc.18b.haus
+    persistence:
+      config:
+        advancedMounts:
+          go2rtc:
+            app:
+            - path: /config/go2rtc.yaml
+              subPath: go2rtc.yaml
+        name: go2rtc
+        type: secret
+    service:
+      app:
+        annotations:
+          external-dns.alpha.kubernetes.io/hostname: go2rtc-streams.18b.haus
+          io.cilium/lb-ipam-ips: 192.168.40.246
+        controller: go2rtc
+        ports:
+          api:
+            port: 1984
+          rtsp:
+            port: 554
+          webrtc:
+            port: 8555
+            protocol: UDP
+        type: LoadBalancer
+

Copy link

github-actions bot commented Jun 7, 2024

helmrelease changes in kubernetes/main

--- HelmRelease: default/go2rtc Service: default/go2rtc

+++ HelmRelease: default/go2rtc Service: default/go2rtc

@@ -0,0 +1,33 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: go2rtc
+  labels:
+    app.kubernetes.io/instance: go2rtc
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: go2rtc
+    app.kubernetes.io/service: go2rtc
+  annotations:
+    external-dns.alpha.kubernetes.io/hostname: go2rtc-streams.18b.haus
+    io.cilium/lb-ipam-ips: 192.168.40.246
+spec:
+  type: LoadBalancer
+  ports:
+  - port: 1984
+    targetPort: 1984
+    protocol: TCP
+    name: api
+  - port: 554
+    targetPort: 554
+    protocol: TCP
+    name: rtsp
+  - port: 8555
+    targetPort: 8555
+    protocol: UDP
+    name: webrtc
+  selector:
+    app.kubernetes.io/component: go2rtc
+    app.kubernetes.io/instance: go2rtc
+    app.kubernetes.io/name: go2rtc
+
--- HelmRelease: default/go2rtc Deployment: default/go2rtc

+++ HelmRelease: default/go2rtc Deployment: default/go2rtc

@@ -0,0 +1,46 @@

+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: go2rtc
+  labels:
+    app.kubernetes.io/component: go2rtc
+    app.kubernetes.io/instance: go2rtc
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: go2rtc
+spec:
+  revisionHistoryLimit: 3
+  replicas: 1
+  strategy:
+    type: Recreate
+  selector:
+    matchLabels:
+      app.kubernetes.io/component: go2rtc
+      app.kubernetes.io/name: go2rtc
+      app.kubernetes.io/instance: go2rtc
+  template:
+    metadata:
+      labels:
+        app.kubernetes.io/component: go2rtc
+        app.kubernetes.io/instance: go2rtc
+        app.kubernetes.io/name: go2rtc
+    spec:
+      enableServiceLinks: false
+      serviceAccountName: default
+      automountServiceAccountToken: true
+      hostIPC: false
+      hostNetwork: false
+      hostPID: false
+      dnsPolicy: ClusterFirst
+      containers:
+      - image: ghcr.io/alexxit/go2rtc:1.9.3@sha256:aff58d47b5c2802c59e9514d3f58f5c8e935fbf7200de80566eb7dcb6a84358c
+        name: app
+        volumeMounts:
+        - mountPath: /config/go2rtc.yaml
+          name: config
+          subPath: go2rtc.yaml
+      volumes:
+      - name: config
+        secret:
+          secretName: go2rtc
+
--- HelmRelease: default/go2rtc Ingress: default/go2rtc

+++ HelmRelease: default/go2rtc Ingress: default/go2rtc

@@ -0,0 +1,28 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: go2rtc
+  labels:
+    app.kubernetes.io/instance: go2rtc
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: go2rtc
+  annotations:
+    gethomepage.dev/enabled: 'false'
+spec:
+  ingressClassName: internal
+  tls:
+  - hosts:
+    - go2rtc.18b.haus
+  rules:
+  - host: go2rtc.18b.haus
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: go2rtc
+            port:
+              number: 1984
+

@martinohmann martinohmann merged commit 9c0e6d7 into main Jun 7, 2024
7 checks passed
@martinohmann martinohmann deleted the go2rtc/install branch June 7, 2024 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes Changes made in the kubernetes directory cluster/main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant