-
Notifications
You must be signed in to change notification settings - Fork 9
/
hawkular-openshift-agent.yaml
115 lines (115 loc) · 2.88 KB
/
hawkular-openshift-agent.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
id: hawkular-openshift-agent
kind: Template
apiVersion: v1
name: Hawkular OpenShift Agent Template
metadata:
name: hawkular-openshift-agent
metrics-infra: agent
parameters:
- description: The version of the image to use
name: IMAGE_VERSION
value: latest
objects:
- apiVersion: v1
kind: ClusterRole
metadata:
name: hawkular-openshift-agent
labels:
metrics-infra: agent
rules:
- apiGroups:
- ""
resources:
- configmaps
- namespaces
- nodes
- pods
- projects
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- apiVersion: v1
kind: ServiceAccount
metadata:
name: hawkular-openshift-agent
labels:
metrics-infra: agent
- apiVersion: v1
kind: Secret
metadata:
name: hawkular-openshift-agent-status
labels:
metrics-infra: agent
data:
username: ZGV2
password: Y2hhbmdlbWU=
- apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: hawkular-openshift-agent
labels:
name: hawkular-openshift-agent
metrics-infra: agent
spec:
selector:
matchLabels:
name: hawkular-openshift-agent
template:
metadata:
labels:
name: hawkular-openshift-agent
metrics-infra: agent
spec:
serviceAccount: hawkular-openshift-agent
containers:
- image: hawkular/hawkular-openshift-agent:${IMAGE_VERSION}
name: hawkular-openshift-agent
livenessProbe:
httpGet:
scheme: HTTP
path: /health
port: 8080
initialDelaySeconds: 30
periodSeconds: 30
command:
- "/opt/hawkular/hawkular-openshift-agent"
- "-config"
- "/hawkular-openshift-agent-configuration/config.yaml"
- "-v"
- "4"
env:
- name: K8S_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: K8S_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: EMITTER_STATUS_CREDENTIALS_USERNAME
valueFrom:
secretKeyRef:
name: hawkular-openshift-agent-status
key: username
- name: EMITTER_STATUS_CREDENTIALS_PASSWORD
valueFrom:
secretKeyRef:
name: hawkular-openshift-agent-status
key: password
volumeMounts:
- name: hawkular-openshift-agent-configuration
mountPath: "/hawkular-openshift-agent-configuration"
volumes:
- name: hawkular-openshift-agent-configuration
configMap:
name: hawkular-openshift-agent-configuration
- name: hawkular-openshift-agent
configMap:
name: hawkular-openshift-agent-configuration