8a9cf61137
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
82 lines
2.2 KiB
YAML
82 lines
2.2 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"
|
|
polaris.fairwinds.com/dangerousCapabilities-exempt: "true"
|
|
polaris.fairwinds.com/insecureCapabilities-exempt: "true"
|
|
polaris.fairwinds.com/hostNetworkSet-exempt: "true"
|
|
polaris.fairwinds.com/notReadOnlyRootFilesystem-exempt: "true"
|
|
polaris.fairwinds.com/runAsNonRoot-exempt: "true"
|
|
polaris.fairwinds.com/privilegeEscalationAllowed-exempt: "true"
|
|
polaris.fairwinds.com/capabilitiesNotDropped-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:
|
|
storageClassName: ceph-block
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 4Gi
|