45 lines
1 KiB
YAML
45 lines
1 KiB
YAML
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
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: forgejo
|
|
app: forgejo-pod
|
|
spec:
|
|
containers:
|
|
- image: codeberg.org/forgejo/forgejo:9.0.1
|
|
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
|