k8s-config/infra-cluster/gitea/manifests/deployment.yaml

34 lines
661 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea-deployment
namespace: gitea
labels:
app: gitea
spec:
replicas: 1
selector:
matchLabels:
app: gitea
template:
metadata:
labels:
app: gitea
spec:
containers:
- name: gitea-app
image: docker.io/gitea/gitea:1.19.0
ports:
- containerPort: 3000
- containerPort: 2222
volumeMounts:
- name: storage
mountPath: "/data"
envFrom:
- configMapRef:
name: gitea-config
volumes:
- name: storage
persistentVolumeClaim:
claimName: gitea-pvc