2024-02-18 02:26:37 +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:
|
2024-10-28 16:01:36 +00:00
|
|
|
- image: codeberg.org/forgejo/forgejo:9.0.1
|
2024-02-22 21:54:54 +00:00
|
|
|
imagePullPolicy: Always
|
2024-02-18 02:26:37 +00:00
|
|
|
name: forgejo
|
|
|
|
resources: {}
|
|
|
|
volumeMounts:
|
|
|
|
- name: forgejo-data
|
|
|
|
mountPath: /data
|
2024-02-19 23:37:37 +00:00
|
|
|
- name: forgejo-templates-base
|
|
|
|
mountPath: /data/gitea/templates/base
|
2024-02-18 02:26:37 +00:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: forgejo
|
2024-02-19 23:37:37 +00:00
|
|
|
- configMapRef:
|
|
|
|
name: forgejo
|
2024-02-18 02:26:37 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 3000
|
|
|
|
- name: ssh
|
|
|
|
containerPort: 22
|
2024-02-19 23:37:37 +00:00
|
|
|
volumes:
|
|
|
|
- name: forgejo-templates-base
|
|
|
|
configMap:
|
|
|
|
name: forgejo-templates-base
|
2024-02-18 02:26:37 +00:00
|
|
|
volumeClaimTemplates:
|
|
|
|
- metadata:
|
|
|
|
name: forgejo-data
|
|
|
|
spec:
|
|
|
|
accessModes: ["ReadWriteOnce"]
|
|
|
|
resources:
|
|
|
|
requests:
|
2024-08-02 20:58:57 +00:00
|
|
|
storage: 30Gi
|