File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion: v1
3+ kind: ConfigMap
4+ metadata:
5+ name: github2telegram-config
6+ data:
7+ config.yaml: |
8+ ---
9+ logger:
10+ - logger: ''
11+ file: stdout
12+ level: debug
13+ encoding: json
14+ encoding_time: iso8601
15+ encoding_duration: seconds
16+ # Only sqlite3 was tested
17+ database_type: sqlite3
18+ database_url: "/data/github2telegram.sqlite3"
19+ database_login: ''
20+ database_password: ''
21+ # Username that will have access to bot controls. Currently only one can be specified
22+ admin_username: "your_telegram_nick"
23+ # Please note, that github might ban bot if you are polling too quick, safe option is about 10 minutes for moderate amount of feeds (100)
24+ polling_interval: "30m"
25+ endpoints:
26+ # Currently only telegram is supported
27+ telegram:
28+ token: "YOUR_TOKEN_GOES_HERE"
29+ type: telegram
30+ ---
31+ apiVersion: apps/v1
32+ kind: Deployment
33+ metadata:
34+ name: github2telegram
35+ spec:
36+ replicas: 1
37+ selector:
38+ matchLabels:
39+ app: github2telegram
40+ template:
41+ metadata:
42+ labels:
43+ app: github2telegram
44+ spec:
45+ containers:
46+ - name: github2telegram
47+ image: wwwlde/github2telegram
48+ args:
49+ - -c
50+ - /config.yaml
51+ resources:
52+ requests:
53+ cpu: 100m
54+ memory: 100Mi
55+ volumeMounts:
56+ - name: config-volume
57+ mountPath: /config.yaml
58+ subPath: config.yaml
59+ - name: github2telegram-data
60+ mountPath: /data
61+ restartPolicy: Always
62+ volumes:
63+ - name: config-volume
64+ configMap:
65+ name: github2telegram-config
66+ - name: github2telegram-data
67+ persistentVolumeClaim:
68+ claimName: github2telegram-persistent-storage-claim
69+ ---
70+ kind: PersistentVolumeClaim
71+ apiVersion: v1
72+ metadata:
73+ name: github2telegram-persistent-storage-claim
74+ spec:
75+ storageClassName: "local-path"
76+ accessModes: [ "ReadWriteOnce" ]
77+ resources:
78+ requests:
79+ storage: 32Mi
You can’t perform that action at this time.
0 commit comments