first upload
This commit is contained in:
3
apps/dokuwiki/apply.sh
Executable file
3
apps/dokuwiki/apply.sh
Executable 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
3
apps/dokuwiki/delete.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
kubectl delete -f deployment.yaml -f service.yaml -f pvc.yaml -f istio.yaml
|
29
apps/dokuwiki/deployment.yaml
Normal file
29
apps/dokuwiki/deployment.yaml
Normal 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
36
apps/dokuwiki/istio.yaml
Normal 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
27
apps/dokuwiki/pvc.yaml
Normal 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
|
12
apps/dokuwiki/service.yaml
Normal file
12
apps/dokuwiki/service.yaml
Normal 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
|
Reference in New Issue
Block a user