Reset git history for making manifests public

This commit is contained in:
2026-06-01 10:21:23 +02:00
commit de77d778fb
403 changed files with 41929 additions and 0 deletions

51
wikijs/httproute.yaml Normal file
View File

@@ -0,0 +1,51 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: wikijs-route
namespace: wiki
spec:
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: gateway-internal
namespace: envoy-gateway
sectionName: wikijs
- group: gateway.networking.k8s.io
kind: Gateway
name: gateway-public
namespace: envoy-gateway
sectionName: wikijs
hostnames:
- "wiki.jsme.be"
rules:
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: RequestHeaderModifier
requestHeaderModifier:
set:
- name: X-Forwarded-Host
value: "wiki.jsme.be"
- name: X-Forwarded-Proto
value: https
- type: ResponseHeaderModifier
responseHeaderModifier:
set:
- name: Strict-Transport-Security
value: "max-age=31536000; includeSubDomains"
- name: X-Content-Type-Options
value: nosniff
- name: X-Frame-Options
value: SAMEORIGIN
- name: Referrer-Policy
value: strict-origin-when-cross-origin
- name: Permissions-Policy
value: "camera=(), microphone=(), geolocation=(), payment=()"
backendRefs:
- name: wiki
port: 3000
kind: Service
group: ""
weight: 1

View File

@@ -0,0 +1,49 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: wiki
name: wikijs-postgresql
spec:
replicas: 1
selector:
matchLabels:
app: wikijs-postgresql
serviceName: wikijs-postgresql
template:
metadata:
labels:
app: wikijs-postgresql
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 60
containers:
- name: wikijs-postgresql
image: postgres:18
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
ports:
- containerPort: 5432
volumeMounts:
- name: wikijs-postgresql-database
mountPath: /var/lib/postgresql/volumes/pgdata
env:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: wiki-postgresql
key: password
- name: POSTGRES_USER
value: jeffrey
- name: POSTGRES_DB
value: wikijs
- name: PGDATA
value: /var/lib/postgresql/volumes/pgdata/data
volumes:
- name: wikijs-postgresql-database
persistentVolumeClaim:
claimName: wikijs-postgresql-pvc

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: wiki
name: wikijs-postgresql-pvc
spec:
accessModes:
- ReadWriteMany
storageClassName: longhorn-static
resources:
requests:
storage: 10Gi

View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: wikijs-postgresql
namespace: wiki
spec:
selector:
app: wikijs-postgresql
type: ClusterIP
ports:
- name: wikijs-postgresql-port
protocol: TCP
port: 5432
targetPort: 5432

4
wikijs/wikijs-ns.yaml Normal file
View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: wiki

View File

@@ -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

46
wikijs/wikijs/wiki.yaml Normal file
View File

@@ -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