-
Notifications
You must be signed in to change notification settings - Fork 472
/
faas-idler-dep.yml
52 lines (52 loc) · 1.23 KB
/
faas-idler-dep.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
46
47
48
49
50
51
52
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: faas-idler
namespace: "openfaas"
labels:
app: openfaas
component: faas-idler
spec:
replicas: 1
selector:
matchLabels:
app: faas-idler
template:
metadata:
annotations:
prometheus.io.scrape: "false"
labels:
app: faas-idler
spec:
containers:
- name: faas-idler
resources:
requests:
memory: 64Mi
image: openfaas/faas-idler:0.4.0
imagePullPolicy: Always
env:
- name: gateway_url
value: "http://gateway.openfaas:8080/"
- name: prometheus_host
value: "prometheus.openfaas"
- name: prometheus_port
value: "9090"
- name: inactivity_duration
value: 30m
- name: reconcile_interval
value: 2m
command:
- /home/app/faas-idler
- -dry-run=true
volumeMounts:
- name: auth
readOnly: true
mountPath: "/var/secrets/"
volumes:
- name: auth
secret:
secretName: basic-auth
nodeSelector:
beta.kubernetes.io/arch: amd64