-
Notifications
You must be signed in to change notification settings - Fork 3
/
job.yaml
29 lines (29 loc) · 889 Bytes
/
job.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
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: push-image
namespace: monitoring
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
ttlSecondsAfterFinished: 60
template:
spec:
containers:
- name: twittergrafana
image: docker.io/wiardvanrij/twittergrafana:2
imagePullPolicy: IfNotPresent
env:
- name: consumer_key
value: xxx
- name: consumer_secret
value: xxx
- name: access_token
value: xxx
- name: access_token_secret
value: xxx
- name: image_url
## Example; replace it
value: http://admin:admin@grafana:3000/render/d-solo/wR0Yf26Gk/twitter-followers?orgId=1&panelId=2&width=1500&height=500&tz=Europe%2FAmsterdam
restartPolicy: OnFailure