40 lines
1011 B
YAML
40 lines
1011 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: forgejo
|
||
|
spec:
|
||
|
template:
|
||
|
spec:
|
||
|
initContainers:
|
||
|
- name: config-templater
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: forgejo-config
|
||
|
- secretRef:
|
||
|
name: forgejo-config
|
||
|
env:
|
||
|
- name: GITEA__DATABASE__HOST
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: database-configuration
|
||
|
key: address
|
||
|
- name: GITEA__DATABASE__NAME
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: database-configuration
|
||
|
key: dbname
|
||
|
- name: GITEA__DATABASE__USER
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: database-configuration
|
||
|
key: name
|
||
|
- name: GITEA__DATABASE__PASSWD
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: database-configuration
|
||
|
key: password
|
||
|
- name: forgejo-oidc
|
||
|
envFrom:
|
||
|
- secretRef:
|
||
|
name: keycloak-client-config
|