first upload

This commit is contained in:
2025-07-20 14:48:10 +02:00
parent c4d9a64b4f
commit 676e150f75
6 changed files with 110 additions and 0 deletions

3
apps/dokuwiki/apply.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
kubectl apply -f pvc.yaml -f deployment.yaml -f service.yaml -f istio.yaml

3
apps/dokuwiki/delete.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
kubectl delete -f deployment.yaml -f service.yaml -f pvc.yaml -f istio.yaml

View File

@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dokuwiki
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: dokuwiki
template:
metadata:
labels:
app: dokuwiki
spec:
containers:
- name: dokuwiki
image: lscr.io/linuxserver/dokuwiki
ports:
- containerPort: 80
protocol: TCP
volumeMounts:
- mountPath: /config
name: dokuwikidata
volumes:
- name: dokuwikidata
persistentVolumeClaim:
claimName: dokuwiki-pvc
restartPolicy: Always

36
apps/dokuwiki/istio.yaml Normal file
View File

@@ -0,0 +1,36 @@
apiVersion: networking.istio.io/v1
kind: Gateway
metadata:
name: dokuwiki-gw
namespace: default
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "wiki.kind.local"
---
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
name: dokuwiki-vs
namespace: default
spec:
hosts:
- "wiki.kind.local"
gateways:
- dokuwiki-gw
http:
- match:
- uri:
prefix: /
route:
- destination:
host: dokuwiki.default.svc.cluster.local
port:
number: 80

27
apps/dokuwiki/pvc.yaml Normal file
View File

@@ -0,0 +1,27 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: dokuwiki-pv
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /volume/dokuwiki
persistentVolumeReclaimPolicy: Retain
storageClassName: manual
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: dokuwiki-pvc
namespace: default
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: dokuwiki
namespace: default
spec:
ports:
- port: 80
targetPort: 80
name: http
selector:
app: dokuwiki