5a5cfb2847
LinuxServer s6-overlay requires starting as root to fix directory permissions (/run, etc.) before dropping privileges. Setting PUID/PGID forces immediate UID 1000 start, causing permission errors: "fatal: /run belongs to uid 0 instead of 1000" Let the container run as root with existing Polaris exemptions. The s6-overlay init system handles privilege management internally. Fixes CrashLoopBackOff in znc-0 pod. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
74 lines
1.8 KiB
YAML
74 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: znc
|
|
labels:
|
|
app.kubernetes.io/name: znc
|
|
app.kubernetes.io/instance: znc
|
|
annotations:
|
|
polaris.fairwinds.com/tagNotSpecified-exempt: "true"
|
|
polaris.fairwinds.com/topologySpreadConstraint-exempt: "true"
|
|
polaris.fairwinds.com/runAsRootAllowed-exempt: "true"
|
|
polaris.fairwinds.com/runAsPrivileged-exempt: "true"
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: znc
|
|
app.kubernetes.io/instance: znc
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: znc
|
|
app.kubernetes.io/instance: znc
|
|
spec:
|
|
priorityClassName: low-priority
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- name: znc
|
|
image: lscr.io/linuxserver/znc:latest
|
|
|
|
ports:
|
|
- containerPort: 6501
|
|
name: irc-6501
|
|
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: "/app/config"
|
|
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
ephemeral-storage: "1Gi"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
ephemeral-storage: "2Gi"
|
|
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 6501
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 2
|
|
failureThreshold: 3
|
|
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: 6501
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|
|
timeoutSeconds: 2
|
|
failureThreshold: 3
|
|
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: config
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 4Gi
|