blob: fa49ec3db920ef6f4cd8ea72634af356916f3095 [file] [log] [blame]
---
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
---