-
Notifications
You must be signed in to change notification settings - Fork 1
/
kubernetes.yml
45 lines (45 loc) · 1.07 KB
/
kubernetes.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
apiVersion: v1
kind: Namespace
metadata:
name: bdaybot
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
annotations:
name: bdaybot
namespace: bdaybot
spec:
schedule: 55 6 * * *
concurrencyPolicy: Allow
failedJobsHistoryLimit: 1
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- image: josefuentes/bdaybot-slack
imagePullPolicy: Always
name: bdaybot
args:
- -config
- /config/config.json
- -userTokenFile
- /token/token.json
volumeMounts:
- mountPath: /config
name: bdaybot-config
readOnly: true
- mountPath: /token
name: bdaybot-token
readOnly: true
volumes:
- name: bdaybot-config
secret:
defaultMode: 420
secretName: bdaybot-config
- name: bdaybot-token
secret:
defaultMode: 420
secretName: bdaybot-token