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>
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: unbound
|
|
namespace: pihole
|
|
labels:
|
|
app: unbound
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: unbound
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: unbound
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 1
|
|
preference:
|
|
matchExpressions:
|
|
- key: cpu
|
|
operator: In
|
|
values:
|
|
- arm
|
|
- key: model
|
|
operator: In
|
|
values:
|
|
- raspi
|
|
containers:
|
|
- name: unbound
|
|
image: docker.io/mvance/unbound-rpi:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: svc-53-udp
|
|
containerPort: 53
|
|
protocol: UDP
|
|
- name: svc-53-tcp
|
|
containerPort: 53
|
|
protocol: TCP
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 50Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|