apiVersion: apps/v1 kind: Deployment metadata: name: gitea namespace: gitea labels: app: gitea spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: gitea template: metadata: labels: app: gitea spec: containers: - name: gitea image: gitea/gitea:1.22.6 imagePullPolicy: IfNotPresent ports: - name: http containerPort: 3000 protocol: TCP - name: ssh containerPort: 22 protocol: TCP volumeMounts: - name: gitea-data mountPath: /data - name: gitea-config mountPath: /etc/gitea env: - name: USER_UID value: "1000" - name: USER_GID value: "1000" resources: requests: cpu: "500m" memory: "512Mi" limits: cpu: "1000m" memory: "1Gi" livenessProbe: httpGet: path: /api/healthz port: 3000 initialDelaySeconds: 200 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 10 readinessProbe: httpGet: path: /api/healthz port: 3000 initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3 volumes: - name: gitea-data persistentVolumeClaim: claimName: gitea-data - name: gitea-config persistentVolumeClaim: claimName: gitea-config