42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
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/server
|
|
ports:
|
|
- containerPort: 80
|
|
env:
|
|
- name: DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: gitea.gitea.credentials.postgresql.acid.zalan.do
|
|
key: password
|
|
- name: SIGNUPS_ALLOWED
|
|
value: "true"
|
|
- name: DATABASE_URL
|
|
value: "postgresql://gitea:$(DB_PASSWORD)@gitea.gitea.svc.cluster.local:5432/gitea"
|
|
- name: ADMIN_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: gitea-admin
|
|
key: token
|
|
volumes:
|
|
- name: gitea-pv
|
|
hostPath:
|
|
path: "/mnt/gitea"
|