infra/k8s/forgejo/statefulset.yaml
Renovate Bot 48b5690269
All checks were successful
/ diff-and-deploy (push) Successful in 2m6s
chore(deps): update codeberg.org/forgejo/forgejo docker tag to v9.0.2
2024-11-15 21:01:44 +00:00

47 lines
1 KiB
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: codeberg.org/forgejo/forgejo:9.0.2
imagePullPolicy: Always
name: forgejo
resources: {}
volumeMounts:
- name: forgejo-data
mountPath: /data
- name: forgejo-templates-base
mountPath: /data/gitea/templates/base
envFrom:
- secretRef:
name: forgejo
- configMapRef:
name: forgejo
ports:
- name: web
containerPort: 3000
- name: ssh
containerPort: 22
volumes:
- name: forgejo-templates-base
configMap:
name: forgejo-templates-base
volumeClaimTemplates:
- metadata:
name: forgejo-data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 30Gi