42 lines
865 B
YAML
42 lines
865 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: forgejo
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: forgejo
|
||
|
serviceName: forgejo
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: forgejo
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: git.janky.solutions/finn/forgejo:dev
|
||
|
imagePullPolicy: Always
|
||
|
name: forgejo
|
||
|
resources: {}
|
||
|
volumeMounts:
|
||
|
- name: forgejo-data
|
||
|
mountPath: /data
|
||
|
envFrom:
|
||
|
- secretRef:
|
||
|
name: forgejo
|
||
|
- configMapRef:
|
||
|
name: forgejo
|
||
|
ports:
|
||
|
- name: web
|
||
|
containerPort: 3000
|
||
|
- name: ssh
|
||
|
containerPort: 22
|
||
|
volumeClaimTemplates:
|
||
|
- metadata:
|
||
|
name: forgejo-data
|
||
|
spec:
|
||
|
accessModes: ["ReadWriteOnce"]
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 5Gi
|