Split manifests into infra/ and applications/

This commit is contained in:
2026-06-21 12:23:20 +02:00
parent 64e8bf7d78
commit c40577589d
360 changed files with 69 additions and 67 deletions
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: wiki
namespace: wiki
spec:
selector:
app: wiki
type: ClusterIP
ports:
- name: wiki-port
protocol: TCP
port: 3000
targetPort: 3000
@@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: wiki
namespace: wiki
spec:
replicas: 1
selector:
matchLabels:
app: wiki
serviceName: wiki
template:
metadata:
labels:
app: wiki
spec:
terminationGracePeriodSeconds: 60
containers:
- name: wiki
image: ghcr.io/requarks/wiki:2
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
ports:
- containerPort: 3000
env:
- name: DB_TYPE
value: postgres
- name: DB_HOST
value: wikijs-postgresql.wiki.svc.cluster.local
- name: DB_PORT
value: "5432"
- name: DB_NAME
value: wikijs
- name: DB_USER
value: jeffrey
- name: DB_PASS
valueFrom:
secretKeyRef:
name: wiki-postgresql
key: password
restartPolicy: Always