Add Foswiki.
Change-Id: Iae86c21d09d221f848bc263ade5fbe50704b8bf4
diff --git a/foswiki/foswiki.yaml b/foswiki/foswiki.yaml
new file mode 100644
index 0000000..fa49ec3
--- /dev/null
+++ b/foswiki/foswiki.yaml
@@ -0,0 +1,108 @@
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: foswiki
+ namespace: mulk
+ labels:
+ name: foswiki
+ k8s-app: foswiki
+spec:
+ selector:
+ name: foswiki
+ type: ClusterIP
+ ports:
+ - name: http
+ port: 80
+ targetPort: http
+ protocol: TCP
+---
+apiVersion: extensions/v1beta1
+kind: Ingress
+metadata:
+ name: foswiki
+ namespace: mulk
+ labels:
+ name: foswiki
+ k8s-app: foswiki
+ annotations:
+ kubernetes.io/ingress.class: traefik
+ traefik.ingress.kubernetes.io/preserve-host: "true"
+ #traefik.ingress.kubernetes.io/rule-type: PathPrefixStrip
+ ingress.kubernetes.io/ssl-proxy-headers: X-Forwarded-Proto:https
+ ingress.kubernetes.io/custom-request-headers: X-Forwarded-Proto:https||X-Forwarded-Port:443
+spec:
+ rules:
+ - host: foswiki.benkard.de
+ http:
+ paths:
+ - path: /
+ backend:
+ serviceName: foswiki
+ servicePort: http
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: foswiki
+ namespace: mulk
+ labels:
+ name: foswiki
+ k8s-app: foswiki
+spec:
+ replicas: 1
+ strategy:
+ type: Recreate
+ selector:
+ matchLabels:
+ k8s-app: foswiki
+ name: foswiki
+ template:
+ metadata:
+ labels:
+ name: foswiki
+ k8s-app: foswiki
+ spec:
+ imagePullSecrets:
+ - name: portus-token
+ volumes:
+ - name: data
+ persistentVolumeClaim:
+ claimName: foswiki-data
+ containers:
+ - name: master
+ image: docker.benkard.de/mulk/foswiki:1.0.8-1
+ imagePullPolicy: IfNotPresent
+ resources:
+ limits:
+ cpu: 2000m
+ memory: 2000Mi
+ requests:
+ cpu: 10m
+ memory: 300Mi
+ volumeMounts:
+ - name: data
+ mountPath: /var/www/foswiki
+ ports:
+ - containerPort: 80
+ name: http
+ protocol: TCP
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: foswiki-data
+ namespace: mulk
+ labels:
+ name: foswiki-data
+ k8s-app: foswiki
+ annotations:
+ volume.beta.kubernetes.io/storage-provisioner: rancher.io/local-path
+spec:
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 50Gi
+ storageClassName: local-path
+---