blob: ae42ce35dc0732a06b3140061a73942f0e40cc7a [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---
Matthias Andreas Benkard62bba042023-03-12 15:08:36 +010020apiVersion: networking.k8s.io/v1
Matthias Andreas Benkard35751e52023-03-12 14:52:19 +010021kind: Ingress
22metadata:
23 name: foswiki
24 namespace: mulk
25 labels:
26 name: foswiki
27 k8s-app: foswiki
28 annotations:
Matthias Andreas Benkard35751e52023-03-12 14:52:19 +010029 ingress.kubernetes.io/ssl-proxy-headers: X-Forwarded-Proto:https
30 ingress.kubernetes.io/custom-request-headers: X-Forwarded-Proto:https||X-Forwarded-Port:443
Matthias Andreas Benkard62bba042023-03-12 15:08:36 +010031 kubernetes.io/ingress.class: nginx
32 cert-manager.io/cluster-issuer: letsencrypt-prod
Matthias Andreas Benkard35751e52023-03-12 14:52:19 +010033spec:
34 rules:
35 - host: foswiki.benkard.de
36 http:
37 paths:
38 - path: /
Matthias Andreas Benkard62bba042023-03-12 15:08:36 +010039 pathType: ImplementationSpecific
Matthias Andreas Benkard35751e52023-03-12 14:52:19 +010040 backend:
Matthias Andreas Benkard62bba042023-03-12 15:08:36 +010041 service:
42 name: foswiki
43 port:
44 name: http
45 tls:
46 - hosts:
47 - foswiki.benkard.de
48 secretName: foswiki-tls
Matthias Andreas Benkard35751e52023-03-12 14:52:19 +010049---
50apiVersion: apps/v1
51kind: Deployment
52metadata:
53 name: foswiki
54 namespace: mulk
55 labels:
56 name: foswiki
57 k8s-app: foswiki
58spec:
59 replicas: 1
60 strategy:
61 type: Recreate
62 selector:
63 matchLabels:
64 k8s-app: foswiki
65 name: foswiki
66 template:
67 metadata:
68 labels:
69 name: foswiki
70 k8s-app: foswiki
71 spec:
72 imagePullSecrets:
73 - name: portus-token
74 volumes:
75 - name: data
76 persistentVolumeClaim:
77 claimName: foswiki-data
78 containers:
79 - name: master
Matthias Andreas Benkard62bba042023-03-12 15:08:36 +010080 image: docker.benkard.de/mulk/foswiki:1.29-1
Matthias Andreas Benkard35751e52023-03-12 14:52:19 +010081 imagePullPolicy: IfNotPresent
82 resources:
83 limits:
84 cpu: 2000m
85 memory: 2000Mi
86 requests:
87 cpu: 10m
88 memory: 300Mi
89 volumeMounts:
90 - name: data
91 mountPath: /var/www/foswiki
92 ports:
93 - containerPort: 80
94 name: http
95 protocol: TCP
96---
97apiVersion: v1
98kind: PersistentVolumeClaim
99metadata:
100 name: foswiki-data
101 namespace: mulk
102 labels:
103 name: foswiki-data
104 k8s-app: foswiki
105 annotations:
106 volume.beta.kubernetes.io/storage-provisioner: rancher.io/local-path
107spec:
108 accessModes:
109 - ReadWriteOnce
110 resources:
111 requests:
112 storage: 50Gi
113 storageClassName: local-path
114---