Gitea/manifests/deployment.yaml

58 lines
1.9 KiB
YAML
Raw Normal View History

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
image: gitea/gitea:1.19.3
ports:
2023-06-30 21:42:51 +00:00
- containerPort: 3000
env:
- 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
valueFrom:
secretKeyRef:
name: gitea.gitea.credentials.postgresql.acid.zalan.do
key: password
- name: GITEA__server__LFS_JWT_SECRET
valueFrom:
secretKeyRef:
name: gitea-lfs-jwt-secret
key: token
- name: GITEA__security__INTERNAL_TOKEN
valueFrom:
secretKeyRef:
name: gitea-lfs-jwt-secret
key: token
2023-07-03 10:41:15 +00:00
volumeMounts:
- mountPath: "/data/gitea/conf/app.ini"
name: gitea-config-volume
subPath: app.ini
volumes:
- name: gitea-pv
hostPath:
path: "/mnt/gitea"
2023-07-03 10:41:15 +00:00
- name: gitea-config-volume
configMap:
name: gitea-config