This repository has been archived on 2026-05-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
irc/thelounge/statefulset.yaml
T
2026-01-17 11:40:51 -05:00

50 lines
1.3 KiB
YAML

## StatefulSet
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: thelounge
annotations:
polaris.fairwinds.com/runAsRootAllowed-exempt: "true" # linuxserver.io images don't support this, need to build my own
polaris.fairwinds.com/tagNotSpecified-exempt: "true" # allow latest tag for this app
polaris.fairwinds.com/topologySpreadConstraint-exempt: "true" # statefulset doesn't support multiple replicas
spec:
selector:
matchLabels:
app.kubernetes.io/name: thelounge
serviceName: "thelounge"
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: thelounge
spec:
priorityClassName: low-priority
automountServiceAccountToken: false
containers:
- name: thelounge
image: ghcr.io/thelounge/thelounge:latest
securityContext:
allowPrivilegeEscalation: false
ports:
- containerPort: 9000
name: http-9000
volumeMounts:
- name: config
mountPath: "/var/opt/thelounge"
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
volumeClaimTemplates:
- metadata:
name: config
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 4Gi