homelab-k3s/apps/unified-streaming/deployment.yaml
jasonwitty 8afac39d03 Import manifests reverse-engineered from live cluster
Captured 2026-07-26 from rpi-master (k3s v1.30.3) and cleaned of runtime
fields. Six apps as per-app kustomizations: vaultwarden, searxng,
home-assistant, nginx, pihole(+unbound), unified-streaming.

Intentional divergences from live state:
- pihole WEBPASSWORD and USP_LICENSE_KEY moved from inline plaintext env
  to secretKeyRef (secrets gitignored; templates in secret.example.yaml)
- HA ingress defaultBackend fixed (pointed at nonexistent service)
- unifiedstreaming-svc kept as ClusterIP (LoadBalancer could never bind
  port 80 behind svclb-traefik)

Validated against the live cluster with kubectl apply --dry-run=server:
no immutable-field conflicts; one-time kubectl replace procedure for the
two env->secretKeyRef migrations documented in README.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-26 02:13:56 -07:00

70 lines
2.1 KiB
YAML

# DIVERGENCE from live state (intentional): the live deployment has
# USP_LICENSE_KEY as a plaintext env value. Here it comes from the
# `usp-license` secret — create it (see secret.example.yaml) BEFORE applying
# this. The Rancher-era selector label is immutable; do not change it.
apiVersion: apps/v1
kind: Deployment
metadata:
name: unifiedstreaming
namespace: unified-streaming
labels:
workload.user.cattle.io/workloadselector: apps.deployment-unified-streaming-unifiedstreaming
spec:
replicas: 3
selector:
matchLabels:
workload.user.cattle.io/workloadselector: apps.deployment-unified-streaming-unifiedstreaming
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
template:
metadata:
labels:
app: unifiedstreaming
workload.user.cattle.io/workloadselector: apps.deployment-unified-streaming-unifiedstreaming
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: cpu
operator: In
values:
- arm
- key: controller
operator: NotIn
values:
- "true"
containers:
- name: unifiedstreaming
image: unifiedstreaming/origin:latest
imagePullPolicy: Always
env:
- name: USP_LICENSE_KEY
valueFrom:
secretKeyRef:
name: usp-license
key: USP_LICENSE_KEY
livenessProbe:
httpGet:
path: /
port: 80
failureThreshold: 3
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 80
failureThreshold: 3
periodSeconds: 10
volumeMounts:
- name: vol-apn2a
mountPath: /var/www/unified-origin
volumes:
- name: vol-apn2a
persistentVolumeClaim:
claimName: unified-streaming-pvc