apiVersion: apps/v1 kind: Deployment metadata: name: gitea namespace: gitea spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: gitea template: metadata: labels: app: gitea spec: containers: - name: gitea image: gitea/gitea:1.24 ports: - containerPort: 3000 name: http - containerPort: 22 name: ssh env: - name: GITEA__database__DB_TYPE value: sqlite3 - name: GITEA__server__DOMAIN value: git.prod.t01tt.tech - name: GITEA__server__ROOT_URL value: https://git.prod.t01tt.tech - name: GITEA__server__HTTP_PORT value: "3000" - name: GITEA__server__SSH_PORT value: "22" - name: GITEA__service__DISABLE_REGISTRATION value: "true" volumeMounts: - name: data mountPath: /data resources: requests: cpu: 100m memory: 128Mi limits: cpu: 500m memory: 512Mi livenessProbe: httpGet: path: / port: 3000 initialDelaySeconds: 10 periodSeconds: 10 readinessProbe: httpGet: path: / port: 3000 initialDelaySeconds: 5 periodSeconds: 5 volumes: - name: data persistentVolumeClaim: claimName: gitea-data