46 lines
1.1 KiB
YAML
46 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: {}
|
||
|
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: {}
|
||
|
volumes:
|
||
|
- name: data
|
||
|
persistentVolumeClaim:
|
||
|
claimName: forgejo-data
|
||
|
status: {}
|