|
1 |
| -apiVersion: v1 |
2 |
| -automountServiceAccountToken: true |
3 |
| -kind: ServiceAccount |
4 |
| -metadata: |
5 |
| - name: ta |
6 |
| ---- |
7 |
| -apiVersion: v1 |
8 |
| -automountServiceAccountToken: true |
9 |
| -kind: ServiceAccount |
10 |
| -metadata: |
11 |
| - name: collector |
12 |
| ---- |
13 |
| -apiVersion: rbac.authorization.k8s.io/v1 |
14 |
| -kind: ClusterRole |
15 |
| -metadata: |
16 |
| - name: targetallocator-prometheuscr |
17 |
| -rules: |
18 |
| -- apiGroups: |
19 |
| - - "" |
20 |
| - resources: |
21 |
| - - pods |
22 |
| - - nodes |
23 |
| - - services |
24 |
| - - endpoints |
25 |
| - - configmaps |
26 |
| - - secrets |
27 |
| - - namespaces |
28 |
| - verbs: |
29 |
| - - get |
30 |
| - - watch |
31 |
| - - list |
32 |
| -- apiGroups: |
33 |
| - - apps |
34 |
| - resources: |
35 |
| - - statefulsets |
36 |
| - - services |
37 |
| - - endpoints |
38 |
| - verbs: |
39 |
| - - get |
40 |
| - - watch |
41 |
| - - list |
42 |
| -- apiGroups: |
43 |
| - - discovery.k8s.io |
44 |
| - resources: |
45 |
| - - endpointslices |
46 |
| - verbs: |
47 |
| - - get |
48 |
| - - watch |
49 |
| - - list |
50 |
| -- apiGroups: |
51 |
| - - networking.k8s.io |
52 |
| - resources: |
53 |
| - - ingresses |
54 |
| - verbs: |
55 |
| - - get |
56 |
| - - watch |
57 |
| - - list |
58 |
| -- apiGroups: |
59 |
| - - monitoring.coreos.com |
60 |
| - resources: |
61 |
| - - servicemonitors |
62 |
| - - podmonitors |
63 |
| - - scrapeconfigs |
64 |
| - - probes |
65 |
| - verbs: |
66 |
| - - get |
67 |
| - - watch |
68 |
| - - list |
69 |
| -- nonResourceURLs: |
70 |
| - - /metrics |
71 |
| - verbs: |
72 |
| - - get |
73 |
| ---- |
74 |
| -apiVersion: rbac.authorization.k8s.io/v1 |
75 |
| -kind: ClusterRole |
76 |
| -metadata: |
77 |
| - name: collector-prometheuscr |
78 |
| -rules: |
79 |
| -- apiGroups: |
80 |
| - - "" |
81 |
| - resources: |
82 |
| - - pods |
83 |
| - - nodes |
84 |
| - - nodes/metrics |
85 |
| - - services |
86 |
| - - endpoints |
87 |
| - - namespaces |
88 |
| - verbs: |
89 |
| - - get |
90 |
| - - watch |
91 |
| - - list |
92 |
| -- apiGroups: |
93 |
| - - networking.k8s.io |
94 |
| - resources: |
95 |
| - - ingresses |
96 |
| - verbs: |
97 |
| - - get |
98 |
| - - watch |
99 |
| - - list |
100 |
| -- nonResourceURLs: |
101 |
| - - /metrics |
102 |
| - - /metrics/cadvisor |
103 |
| - verbs: |
104 |
| - - get |
105 |
| ---- |
106 |
| -apiVersion: rbac.authorization.k8s.io/v1 |
107 |
| -kind: ClusterRoleBinding |
108 |
| -metadata: |
109 |
| - name: (join('-', ['ta', $namespace])) |
110 |
| -roleRef: |
111 |
| - apiGroup: rbac.authorization.k8s.io |
112 |
| - kind: ClusterRole |
113 |
| - name: targetallocator-prometheuscr |
114 |
| -subjects: |
115 |
| -- kind: ServiceAccount |
116 |
| - name: ta |
117 |
| - namespace: ($namespace) |
118 |
| ---- |
119 |
| -apiVersion: rbac.authorization.k8s.io/v1 |
120 |
| -kind: ClusterRoleBinding |
121 |
| -metadata: |
122 |
| - name: (join('-', ['collector', $namespace])) |
123 |
| -roleRef: |
124 |
| - apiGroup: rbac.authorization.k8s.io |
125 |
| - kind: ClusterRole |
126 |
| - name: collector-prometheuscr |
127 |
| -subjects: |
128 |
| -- kind: ServiceAccount |
129 |
| - name: collector |
130 |
| - namespace: ($namespace) |
131 |
| ---- |
132 | 1 | apiVersion: opentelemetry.io/v1alpha1
|
133 | 2 | kind: OpenTelemetryCollector
|
134 | 3 | metadata:
|
|
157 | 26 | prometheusCR:
|
158 | 27 | enabled: true
|
159 | 28 | scrapeInterval: 1s
|
160 |
| - podMonitorNamespaceSelector: {} |
161 |
| - serviceMonitorNamespaceSelector: {} |
162 |
| - scrapeConfigNamespaceSelector: {} |
163 |
| - probeNamespaceSelector: {} |
164 | 29 | serviceAccount: ta
|
0 commit comments