2023-06-30 21:22:44 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: gitea
|
|
|
|
namespace: gitea
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: gitea
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: gitea
|
|
|
|
spec:
|
|
|
|
hostname: gitea
|
|
|
|
subdomain: gitea
|
|
|
|
containers:
|
|
|
|
- name: gitea
|
2023-06-30 21:40:11 +00:00
|
|
|
image: gitea/gitea:1.19.3
|
2023-06-30 21:22:44 +00:00
|
|
|
ports:
|
2023-06-30 21:42:51 +00:00
|
|
|
- containerPort: 3000
|
2023-06-30 21:22:44 +00:00
|
|
|
env:
|
2023-07-03 10:29:17 +00:00
|
|
|
- name: GITEA__database__DB_TYPE
|
|
|
|
value: "postgres"
|
|
|
|
- name: GITEA__database__HOST
|
|
|
|
value: "gitea.gitea.svc.cluster.local:5432"
|
|
|
|
- name: GITEA__database__NAME
|
|
|
|
value: "gitea"
|
|
|
|
- name: GITEA__database__USER
|
|
|
|
value: "gitea"
|
|
|
|
- name: GITEA__database__PASSWD
|
2023-06-30 21:22:44 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: gitea.gitea.credentials.postgresql.acid.zalan.do
|
|
|
|
key: password
|
2023-07-03 10:29:17 +00:00
|
|
|
- name: GITEA__server__LFS_JWT_SECRET
|
2023-06-30 21:22:44 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2023-07-03 10:12:23 +00:00
|
|
|
name: gitea-lfs-jwt-secret
|
|
|
|
key: token
|
2023-07-03 10:29:17 +00:00
|
|
|
- name: GITEA__security__INTERNAL_TOKEN
|
2023-07-03 10:12:23 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: gitea-lfs-jwt-secret
|
2023-06-30 21:22:44 +00:00
|
|
|
key: token
|
|
|
|
volumes:
|
|
|
|
- name: gitea-pv
|
|
|
|
hostPath:
|
|
|
|
path: "/mnt/gitea"
|