-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgollum.yml
107 lines (102 loc) · 1.87 KB
/
gollum.yml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
labels:
app: gollum
name: gollum
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: "4Gi"
---
apiVersion: v1
kind: Service
metadata:
name: gollum
labels:
app: gollum
spec:
ports:
- port: 8080
targetPort: 8080
protocol: TCP
name: gollum
selector:
app: gollum
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: gollum
name: gollum
spec:
replicas: 1
selector:
matchLabels:
app: gollum
strategy:
type: Recreate
template:
metadata:
labels:
app: gollum
spec:
containers:
- name: gollum
image: "antrue/gollum-alpine:4.1.4"
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 5
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 5
resources:
limits:
cpu: 100m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
volumeMounts:
- mountPath: /wiki
name: storage
readOnly: false
securityContext:
fsGroup: 1000
volumes:
- name: storage
persistentVolumeClaim:
claimName: gollum
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: gollum
labels:
app: gollum
annotations:
ingress.kubernetes.io/force-ssl-redirect: true
spec:
rules:
- host: wiki.localhost
http:
paths:
- path: /
backend:
serviceName: gollum
servicePort: 8080
tls:
- hosts:
- wiki.localhost