2023-12-01 14:59:57 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
creationTimestamp: null
|
|
|
|
labels:
|
|
|
|
app: forgejo
|
|
|
|
name: forgejo
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: forgejo
|
2024-10-03 15:26:02 +00:00
|
|
|
strategy:
|
|
|
|
type: Recreate
|
2023-12-01 14:59:57 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
creationTimestamp: null
|
|
|
|
labels:
|
|
|
|
app: forgejo
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- image: codeberg.org/forgejo/forgejo:1.21
|
|
|
|
env:
|
|
|
|
- name: FORGEJO__database__DB_TYPE
|
|
|
|
value: postgres
|
|
|
|
- name: FORGEJO__database__HOST
|
|
|
|
value: forgejo-postgres
|
|
|
|
- name: FORGEJO__database__USER
|
|
|
|
value: forgejo
|
|
|
|
- name: FORGEJO__database__NAME
|
|
|
|
value: forgejo
|
|
|
|
- name: FORGEJO__database__PASSWD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: forgejo.forgejo-postgres.credentials.postgresql.acid.zalan.do
|
|
|
|
key: password
|
|
|
|
name: forgejo
|
|
|
|
volumeMounts:
|
|
|
|
- name: data
|
|
|
|
mountPath: /data
|
2024-10-03 15:22:02 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 224m
|
|
|
|
memory: 978270031
|
2023-12-01 14:59:57 +00:00
|
|
|
volumes:
|
|
|
|
- name: data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: forgejo-data
|
|
|
|
status: {}
|