mirror of
https://github.com/gwg313/homelab-gitops.git
synced 2026-06-23 10:55:43 +00:00
apps restructure
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
8d74a625bc
commit
0b69038d79
11 changed files with 36 additions and 0 deletions
|
|
@ -1,55 +0,0 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: forgejo
|
||||
namespace: forgejo
|
||||
labels:
|
||||
app: forgejo
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: forgejo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: forgejo
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
terminationGracePeriodSeconds: 30
|
||||
containers:
|
||||
- name: forgejo
|
||||
image: codeberg.org/forgejo/forgejo:11-rootless
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
- containerPort: 2222
|
||||
resources:
|
||||
requests:
|
||||
cpu: "50m"
|
||||
memory: "128Mi"
|
||||
limits:
|
||||
cpu: "1000m"
|
||||
memory: "512Mi"
|
||||
env:
|
||||
- name: FORGEJO__server__ROOT_URL
|
||||
value: "https://git.gwg313.xyz/"
|
||||
- name: FORGEJO__ssh__START_SSH_SERVER
|
||||
value: "false"
|
||||
- name: FORGEJO__webhook__ALLOWED_HOST_LIST
|
||||
value: "ci.gwg313.xyz"
|
||||
volumeMounts:
|
||||
- name: forgejo-volume
|
||||
mountPath: /var/lib/gitea
|
||||
subPath: data
|
||||
- name: forgejo-volume
|
||||
mountPath: /etc/gitea
|
||||
subPath: config
|
||||
volumes:
|
||||
- name: forgejo-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: forgejo-pvc
|
||||
Loading…
Add table
Add a link
Reference in a new issue