infra/k8s/forgejo-dev/statefulset.yaml

42 lines
865 B
YAML
Raw Permalink Normal View History

2024-09-12 22:47:30 +00:00
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