infra4talos/apps-kustomized/forgejo/deploy.yaml

50 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: forgejo
name: forgejo
spec:
replicas: 1
selector:
matchLabels:
app: forgejo
strategy:
type: Recreate
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
resources:
requests:
cpu: 224m
memory: 978270031
volumes:
- name: data
persistentVolumeClaim:
claimName: forgejo-data
status: {}