apiVersion: apps/v1 kind: Deployment metadata: name: gitea namespace: default spec: replicas: 1 selector: matchLabels: app: gitea template: metadata: labels: app: gitea spec: nodeSelector: node-role.kubernetes.io/control-plane: "true" containers: - name: gitea image: registry.t-aaron.com/gitea/gitea:latest ports: - containerPort: 3000 - containerPort: 22 env: - name: USER_UID value: "1000" - name: USER_GID value: "1000" volumeMounts: - name: gitea-data mountPath: /data - name: gitea-config mountPath: /etc/gitea volumes: - name: gitea-data hostPath: path: /opt/gitea/data type: DirectoryOrCreate - name: gitea-config hostPath: path: /opt/gitea/config type: DirectoryOrCreate