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
|
2024-07-26 20:16:12 +02:00
|
|
|
strategy:
|
|
|
|
type: Recreate
|
2024-05-06 10:44:23 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: forgejo
|
|
|
|
app: forgejo-pod
|
|
|
|
spec:
|
|
|
|
containers:
|
2024-10-28 17:02:34 +01:00
|
|
|
- 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
|