apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: gitea
  name: gitea
spec:
  replicas: 1
  selector:
    matchLabels:
      app: gitea
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: gitea
    spec:
      containers:
        - image: gitea/gitea:latest
          name: gitea           
          ports:
            - containerPort: 3000
              protocol: TCP
            - containerPort: 22
              protocol: TCP
          resources: {}
          volumeMounts:
            - mountPath: /data
              name: gitea-pvc
      restartPolicy: Always
      volumes:
        - name: gitea-pvc
          nfs:
            server: 192.168.178.4
            path: /mnt/storage/service/gitea
            readOnly: false