infra/k8s/forgejo-dev/statefulset.yaml
2024-09-12 15:47:30 -07:00

41 lines
865 B
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: forgejo
spec:
selector:
matchLabels:
app: forgejo
serviceName: forgejo
replicas: 1
template:
metadata:
labels:
app: forgejo
spec:
containers:
- image: git.janky.solutions/finn/forgejo:dev
imagePullPolicy: Always
name: forgejo
resources: {}
volumeMounts:
- name: forgejo-data
mountPath: /data
envFrom:
- secretRef:
name: forgejo
- configMapRef:
name: forgejo
ports:
- name: web
containerPort: 3000
- name: ssh
containerPort: 22
volumeClaimTemplates:
- metadata:
name: forgejo-data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 5Gi