kubedeploy-k3s/apps/gitea/base/gitea-deployment.yaml
2024-04-25 14:18:52 +02:00

43 lines
897 B
YAML

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:
- name: http
containerPort: 3000
protocol: TCP
- name: ssh
containerPort: 22
protocol: TCP
resources:
limits:
cpu: "0.3"
memory: "2Gi"
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