-
Notifications
You must be signed in to change notification settings - Fork 1
/
foswiki.yaml
76 lines (75 loc) · 1.78 KB
/
foswiki.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Namespace
metadata:
name: foswiki
- apiVersion: apps/v1
kind: Deployment
metadata:
name: foswiki
namespace: foswiki
labels:
app: foswiki
spec:
replicas: 1
selector:
matchLabels:
app: foswiki
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 50%
maxSurge: 1
template:
metadata:
labels:
app: foswiki
spec:
containers:
- name: foswiki
# image: cjlove/centos-foswiki
# image: andreysmelter/ubuntu-foswiki
image: timlegge/docker-foswiki
imagePullPolicy: IfNotPresent
lifecycle:
postStart:
exec:
command:
- ln
- -fs
- /var/www/foswiki/config/LocalSite.cfg
- /var/www/foswiki/lib/LocalSite.cfg
ports:
- containerPort: 80
volumeMounts:
- name: wiki-data
mountPath: /var/www/foswiki/data
- name: wiki-cfg
mountPath: /var/www/foswiki/config
terminationGracePeriodSeconds: 30
volumes:
- name: wiki-data
hostPath:
path: /home/wiki/data
- name: wiki-cfg
hostPath:
path: /home/wiki/config
- apiVersion: v1
kind: Service
metadata:
name: foswiki
namespace: foswiki
labels:
app: foswiki
spec:
type: NodePort
ports:
- port: 80
nodePort: 30000
protocol: TCP
name: http
selector:
app: foswiki