kubedeploy-k3s/apps/gitea/base/deployment.yaml
2024-05-06 14:52:53 +02:00

39 lines
823 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: {}
volumeMounts:
- mountPath: /data
name: gitea
subPath: 7797b859-3356-4aa6-90e0-71ae175836c6
restartPolicy: Always
volumes:
- name: gitea
persistentVolumeClaim:
claimName: gitea-pvc