-
Notifications
You must be signed in to change notification settings - Fork 56
/
gprofiler.yaml
52 lines (52 loc) · 1.27 KB
/
gprofiler.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
apiVersion: v1
kind: Namespace
metadata:
name: granulate
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: granulate-gprofiler
namespace: granulate
labels:
app: granulate-gprofiler
spec:
selector:
matchLabels:
app: granulate-gprofiler
template:
metadata:
labels:
app: granulate-gprofiler
spec:
automountServiceAccountToken: false
hostPID: true
securityContext:
runAsUser: 0
runAsGroup: 0
restartPolicy: Always
containers:
- name: granulate-gprofiler
securityContext:
privileged: true
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 1Gi
image: index.docker.io/granulate/gprofiler:latest
imagePullPolicy: Always
args:
- -cu
- --token=$(GPROFILER_TOKEN)
- --service-name=$(GPROFILER_SERVICE)
env:
- name: GPROFILER_TOKEN
value: @insert your token here@
- name: GPROFILER_SERVICE
value: @insert service name here@
# let gProfiler know it is run by a DaemonSet
- name: GPROFILER_IN_K8S
value: "1"