-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmanifest.yaml
100 lines (100 loc) · 2.73 KB
/
manifest.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
apiVersion: v1
kind: Namespace
metadata:
name: planning-poker
---
apiVersion: v1
kind: Service
metadata:
name: planning-poker
namespace: planning-poker
spec:
ports:
- port: 80
targetPort: http
protocol: TCP
selector:
app: planning-poker
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: planning-poker
namespace: planning-poker
spec:
selector:
matchLabels:
app: planning-poker
replicas: 1
template:
metadata:
labels:
app: planning-poker
spec:
containers:
- name: planning-poker
image: tibordp/planning-poker:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
name: http
env:
# Planning Poker uses Websockets by default, but long polling is supported
# for better experience with reverse proxies that do not pass through Websockets
# very well. It also uses rather aggressive heartbeat intervals, to detect
# client disconnections and reconnect sooner. This helps user experience, but
# can increase resource utilization, so it is adjustable through environment variables.
- name: USE_LONG_POLLING
value: "false"
- name: PP_HEARTBEAT_INTERVAL
value: "5000"
- name: PP_HEARTBEAT_TIMEOUT
value: "10000"
# How long to persist the live session on the server after the last client
# disconnects.
- name: PP_SESSION_TTL
value: "60000"
# How long to persist the finished session data for finished sessions
- name: PP_FINISHED_SESSION_TTL
value: "86400000"
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: http
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 2
httpGet:
path: /health
port: http
initialDelaySeconds: 2
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 1
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: planning-poker
namespace: planning-poker
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.com/health-checks: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- planning-poker.example
secretName: planning-poker-tls
rules:
- host: planning-poker.example
http:
paths:
- path: /
backend:
serviceName: planning-poker
servicePort: 80