forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] add Makefile target for installing the collector as k8s deplo…
…yment (open-telemetry#33220) **Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> This PR adds a makefile target for installing a locally built collector image (on a local k8s kind cluster) in deployment mode. **Link to tracking Issue:** <Issue number if applicable> Fixes open-telemetry#32348 Follow up of open-telemetry#32349 **Testing:** <Describe what testing was performed and which tests were added.> **Documentation:** <Describe the documentation added.> Added /cc @andrzej-stencel who reviewed the daemonset target PR --------- Signed-off-by: ChrsMark <[email protected]> Co-authored-by: Andrzej Stencel <[email protected]>
- Loading branch information
1 parent
58ab68a
commit ed66a5f
Showing
3 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
mode: deployment | ||
|
||
image: | ||
repository: otelcontribcol-dev | ||
tag: "0.0.1" | ||
pullPolicy: IfNotPresent | ||
|
||
command: | ||
name: otelcontribcol | ||
|
||
extraEnvs: | ||
- name: K8S_NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
|
||
clusterRole: | ||
create: true | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
- namespaces | ||
- namespaces/status | ||
- nodes | ||
- nodes/spec | ||
- pods | ||
- pods/status | ||
- replicationcontrollers | ||
- replicationcontrollers/status | ||
- resourcequotas | ||
- services | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- daemonsets | ||
- deployments | ||
- replicasets | ||
- statefulsets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- extensions | ||
resources: | ||
- daemonsets | ||
- deployments | ||
- replicasets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- batch | ||
resources: | ||
- jobs | ||
- cronjobs | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- autoscaling | ||
resources: | ||
- horizontalpodautoscalers | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
|
||
config: | ||
exporters: | ||
debug: | ||
verbosity: detailed | ||
receivers: | ||
k8s_cluster: | ||
collection_interval: 10s | ||
metrics: | ||
k8s.container.cpu_limit: | ||
enabled: false | ||
|
||
service: | ||
pipelines: | ||
metrics: | ||
receivers: [k8s_cluster] | ||
processors: [batch] | ||
exporters: [debug] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters