2026-03-08 04:19:04 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
2026-03-17 08:11:22 +00:00
|
|
|
metadata:
|
2026-03-08 04:19:04 +00:00
|
|
|
name: forgejo
|
|
|
|
|
namespace: forgejo
|
|
|
|
|
labels:
|
|
|
|
|
app: forgejo
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: forgejo
|
|
|
|
|
template:
|
2026-03-17 08:11:22 +00:00
|
|
|
metadata:
|
2026-03-08 04:19:04 +00:00
|
|
|
labels:
|
|
|
|
|
app: forgejo
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: forgejo
|
|
|
|
|
image: codeberg.org/forgejo/forgejo:7
|
|
|
|
|
ports:
|
|
|
|
|
- name: http
|
|
|
|
|
containerPort: 3000
|
|
|
|
|
protocol: TCP
|
|
|
|
|
- name: ssh
|
|
|
|
|
containerPort: 22
|
|
|
|
|
protocol: TCP
|
|
|
|
|
env:
|
|
|
|
|
- name: USER_UID
|
|
|
|
|
value: "1000"
|
|
|
|
|
- name: USER_GID
|
|
|
|
|
value: "1000"
|
|
|
|
|
- name: FORGEJO__database__DB_TYPE
|
|
|
|
|
value: "sqlite3"
|
2026-05-03 04:53:09 +00:00
|
|
|
- name: FORGEJO__server__START_SSH_SERVER
|
|
|
|
|
value: "true"
|
|
|
|
|
- name: FORGEJO__server__SSH_DOMAIN
|
|
|
|
|
value: "forgejo.jethrocotton.com"
|
|
|
|
|
- name: FORGEJO__server__SSH_PORT
|
|
|
|
|
value: "30222"
|
|
|
|
|
- name: FORGEJO__server__SSH_LISTEN_PORT
|
|
|
|
|
value: "22"
|
2026-03-08 04:19:04 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- name: forgejo-data
|
|
|
|
|
mountPath: /data
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
memory: "256Mi"
|
|
|
|
|
cpu: "100m"
|
|
|
|
|
limits:
|
|
|
|
|
memory: "1Gi"
|
|
|
|
|
cpu: "1000m"
|
|
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/healthz
|
|
|
|
|
port: 3000
|
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
timeoutSeconds: 5
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/healthz
|
|
|
|
|
port: 3000
|
|
|
|
|
initialDelaySeconds: 15
|
|
|
|
|
periodSeconds: 5
|
|
|
|
|
timeoutSeconds: 3
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
volumes:
|
|
|
|
|
- name: forgejo-data
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: forgejo-pvc
|