-
Notifications
You must be signed in to change notification settings - Fork 0
/
hakatime.yaml
74 lines (74 loc) · 1.5 KB
/
hakatime.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
apiVersion: v1
kind: Namespace
metadata:
name: hakatime
---
apiVersion: v1
kind: ConfigMap
metadata:
name: hakatime-cm
namespace: hakatime
data:
HAKA_DB_HOST: postgres.postgres.svc.cluster.local
HAKA_DB_PORT: "5432"
HAKA_DB_NAME: postgres
HAKA_DB_USER: user
HAKA_DB_PASS: pass
HAKA_API_PREFIX: "http://10.0.0.149"
HAKA_BADGE_URL: "http://localhost:8080"
HAKA_PORT: "8080"
HAKA_SHIELDS_IO_URL: "https://img.shields.io"
HAKA_ENABLE_REGISTRATION: "true"
HAKA_SESSION_EXPIRY: "24"
HAKA_LOG_LEVEL: "info"
HAKA_ENV: "dev"
HAKA_HTTP_LOG: "true"
GITHUB_TOKEN: "<token>"
HAKA_REMOTE_WRITE_URL: "https://wakatime.com/api/v1/users/current/heartbeats.bulk"
HAKA_REMOTE_WRITE_TOKEN: "<token>"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hakatime
namespace: hakatime
labels:
app: hakatime
spec:
replicas: 1
selector:
matchLabels:
app: hakatime
template:
metadata:
labels:
app: hakatime
spec:
containers:
- name: hakatime
image: mujx/hakatime:latest
envFrom:
- configMapRef:
name: hakatime-cm
ports:
- containerPort: 8080
name: hakatime
---
apiVersion: v1
kind: Service
metadata:
name: hakatime
namespace: hakatime
labels:
app: hakatime
spec:
selector:
app: hakatime
type: LoadBalancer
ports:
- port: 80
name: http
protocol: TCP
targetPort: 8080
type: LoadBalancer
loadBalancerIP: 192.168.18.149