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: - containerPort: 3000 env: - name: DB_PASSWORD valueFrom: secretKeyRef: name: gitea.gitea.credentials.postgresql.acid.zalan.do key: password - name: GITEA__DATABASE__HOST value: "postgresql://gitea:$(DB_PASSWORD)@gitea.gitea.svc.cluster.local:5432/gitea" - 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 volumes: - name: gitea-pv hostPath: path: "/mnt/gitea"