forgejo/k8s/deployment.yaml

46 lines
1 KiB
YAML
Raw Normal View History

2024-05-06 10:44:23 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: forgejo-pod
app.kubernetes.io/instance: forgejo
app: forgejo-pod
name: forgejo-pod
namespace: forgejo
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: forgejo
strategy:
type: Recreate
2024-05-06 10:44:23 +02:00
template:
metadata:
labels:
app.kubernetes.io/name: forgejo
app: forgejo-pod
spec:
containers:
- image: codeberg.org/forgejo/forgejo:9.0.1
2024-05-06 10:44:23 +02:00
imagePullPolicy: Always
env:
- name: USER_UID
value: "1000"
- name: USER_GID
value: "1000"
name: forgejo
ports:
- containerPort: 3000
name: web
protocol: TCP
- containerPort: 22
name: ssh
protocol: TCP
volumeMounts:
- mountPath: "/data"
name: forgejo-pv-storage
volumes:
- name: forgejo-pv-storage
persistentVolumeClaim:
claimName: forgejo-pvc