Addresses 32 CIS Kubernetes Benchmark failures from Prowler scan (core_seccomp_profile_docker_default). Applied pod-level seccomp RuntimeDefault to 18 deployments/statefulsets and 2 cronjobs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
80 lines
2.1 KiB
YAML
80 lines
2.1 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: transmission
|
|
namespace: torrent
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: transmission
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: transmission
|
|
spec:
|
|
securityContext:
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: transmission
|
|
image: registry.ops.eblu.me/blumeops/transmission:kustomized
|
|
env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: "America/Los_Angeles"
|
|
ports:
|
|
- containerPort: 9091
|
|
name: web
|
|
- containerPort: 51413
|
|
name: peer-tcp
|
|
- containerPort: 51413
|
|
protocol: UDP
|
|
name: peer-udp
|
|
volumeMounts:
|
|
- name: downloads
|
|
mountPath: /downloads
|
|
- name: config
|
|
mountPath: /config
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /transmission/web/
|
|
port: 9091
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /transmission/web/
|
|
port: 9091
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
- name: transmission-exporter
|
|
image: registry.ops.eblu.me/blumeops/transmission-exporter:kustomized
|
|
env:
|
|
- name: TRANSMISSION_ADDR
|
|
value: "http://localhost:9091"
|
|
ports:
|
|
- containerPort: 19091
|
|
name: metrics
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "10m"
|
|
limits:
|
|
memory: "64Mi"
|
|
volumes:
|
|
- name: downloads
|
|
persistentVolumeClaim:
|
|
claimName: torrents-storage
|
|
- name: config
|
|
emptyDir: {} # Config is ephemeral; torrents persist in NFS
|