51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: gitea
|
|
namespace: gitea-legacy
|
|
labels:
|
|
app: gitea
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: gitea
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gitea
|
|
spec:
|
|
containers:
|
|
- name: gitea
|
|
image: gitea/gitea:1.22
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: DB_TYPE
|
|
value: 'sqlite3'
|
|
- name: ROOT_URL
|
|
value: 'https://legacy.spamasaurus.com'
|
|
- name: USER_UID
|
|
value: "1000"
|
|
- name: USER_GID
|
|
value: "1000"
|
|
ports:
|
|
- name: ui
|
|
containerPort: 3000
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: flexvolsmb-gitea-data
|
|
- mountPath: /data/ssh
|
|
name: flexvolsmb-gitea-ssh
|
|
subPath: ssh
|
|
# securityContext:
|
|
# runAsUser: 1000
|
|
# runAsGroup: 1000
|
|
# fsGroup: 1000
|
|
volumes:
|
|
- name: flexvolsmb-gitea-data
|
|
persistentVolumeClaim:
|
|
claimName: flexvolsmb-gitea-data
|
|
- name: flexvolsmb-gitea-ssh
|
|
persistentVolumeClaim:
|
|
claimName: flexvolsmb-gitea-ssh
|