apiVersion: apps/v1 kind: Deployment metadata: labels: app: gitea name: gitea-deployment namespace: default spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: gitea strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: app: gitea spec: containers: - image: gitea/gitea:latest imagePullPolicy: Always name: gitea ports: - containerPort: 3000 name: gitea-http protocol: TCP - containerPort: 22 name: gitea-ssh protocol: TCP env: - name: USER_UID value: "1000" - name: USER_GID value: "1000" resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /data name: gitea-storage-iscsi - mountPath: /data2 name: gitea-storage-nfs2 # - mountPath: /data-new # name: gitea-storage-nfs dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 volumes: - name: gitea-storage-iscsi persistentVolumeClaim: claimName: gitea-storage-iscsi - name: gitea-storage-nfs2 persistentVolumeClaim: claimName: gitea-nfs2