blob: fa49ec3db920ef6f4cd8ea72634af356916f3095 [file] [log] [blame]
Matthias Andreas Benkard35751e52023-03-12 14:52:19 +01001---
2apiVersion: v1
3kind: Service
4metadata:
5 name: foswiki
6 namespace: mulk
7 labels:
8 name: foswiki
9 k8s-app: foswiki
10spec:
11 selector:
12 name: foswiki
13 type: ClusterIP
14 ports:
15 - name: http
16 port: 80
17 targetPort: http
18 protocol: TCP
19---
20apiVersion: extensions/v1beta1
21kind: Ingress
22metadata:
23 name: foswiki
24 namespace: mulk
25 labels:
26 name: foswiki
27 k8s-app: foswiki
28 annotations:
29 kubernetes.io/ingress.class: traefik
30 traefik.ingress.kubernetes.io/preserve-host: "true"
31 #traefik.ingress.kubernetes.io/rule-type: PathPrefixStrip
32 ingress.kubernetes.io/ssl-proxy-headers: X-Forwarded-Proto:https
33 ingress.kubernetes.io/custom-request-headers: X-Forwarded-Proto:https||X-Forwarded-Port:443
34spec:
35 rules:
36 - host: foswiki.benkard.de
37 http:
38 paths:
39 - path: /
40 backend:
41 serviceName: foswiki
42 servicePort: http
43---
44apiVersion: apps/v1
45kind: Deployment
46metadata:
47 name: foswiki
48 namespace: mulk
49 labels:
50 name: foswiki
51 k8s-app: foswiki
52spec:
53 replicas: 1
54 strategy:
55 type: Recreate
56 selector:
57 matchLabels:
58 k8s-app: foswiki
59 name: foswiki
60 template:
61 metadata:
62 labels:
63 name: foswiki
64 k8s-app: foswiki
65 spec:
66 imagePullSecrets:
67 - name: portus-token
68 volumes:
69 - name: data
70 persistentVolumeClaim:
71 claimName: foswiki-data
72 containers:
73 - name: master
74 image: docker.benkard.de/mulk/foswiki:1.0.8-1
75 imagePullPolicy: IfNotPresent
76 resources:
77 limits:
78 cpu: 2000m
79 memory: 2000Mi
80 requests:
81 cpu: 10m
82 memory: 300Mi
83 volumeMounts:
84 - name: data
85 mountPath: /var/www/foswiki
86 ports:
87 - containerPort: 80
88 name: http
89 protocol: TCP
90---
91apiVersion: v1
92kind: PersistentVolumeClaim
93metadata:
94 name: foswiki-data
95 namespace: mulk
96 labels:
97 name: foswiki-data
98 k8s-app: foswiki
99 annotations:
100 volume.beta.kubernetes.io/storage-provisioner: rancher.io/local-path
101spec:
102 accessModes:
103 - ReadWriteOnce
104 resources:
105 requests:
106 storage: 50Gi
107 storageClassName: local-path
108---