mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
chore: add otel collector to dev lab (#8106)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
59c2a5d813
commit
23b7bd4644
2 changed files with 26 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -934,6 +934,13 @@ dev-lab-tempo: $(HELM) ## Deploy tempo helm chart
|
||||||
--values ./scripts/config/dev/tempo.yaml
|
--values ./scripts/config/dev/tempo.yaml
|
||||||
@kubectl apply -f ./scripts/config/dev/tempo-datasource.yaml
|
@kubectl apply -f ./scripts/config/dev/tempo-datasource.yaml
|
||||||
|
|
||||||
|
.PHONY: dev-lab-otel-collector
|
||||||
|
dev-lab-otel-collector: $(HELM) ## Deploy tempo helm chart
|
||||||
|
@echo Install otel-collector chart... >&2
|
||||||
|
@$(HELM) upgrade --install opentelemetry-collector --namespace monitoring --create-namespace --wait \
|
||||||
|
--repo https://open-telemetry.github.io/opentelemetry-helm-charts opentelemetry-collector \
|
||||||
|
--values ./scripts/config/dev/otel-collector.yaml
|
||||||
|
|
||||||
.PHONY: dev-lab-metrics-server
|
.PHONY: dev-lab-metrics-server
|
||||||
dev-lab-metrics-server: $(HELM) ## Deploy metrics-server helm chart
|
dev-lab-metrics-server: $(HELM) ## Deploy metrics-server helm chart
|
||||||
@echo Install metrics-server chart... >&2
|
@echo Install metrics-server chart... >&2
|
||||||
|
@ -942,7 +949,7 @@ dev-lab-metrics-server: $(HELM) ## Deploy metrics-server helm chart
|
||||||
--values ./scripts/config/dev/metrics-server.yaml
|
--values ./scripts/config/dev/metrics-server.yaml
|
||||||
|
|
||||||
.PHONY: dev-lab-all
|
.PHONY: dev-lab-all
|
||||||
dev-lab-all: dev-lab-ingress-ngingx dev-lab-metrics-server dev-lab-prometheus dev-lab-loki dev-lab-tempo ## Deploy all dev lab components
|
dev-lab-all: dev-lab-ingress-ngingx dev-lab-metrics-server dev-lab-prometheus dev-lab-loki dev-lab-tempo dev-lab-otel-collector ## Deploy all dev lab components
|
||||||
|
|
||||||
.PHONY: dev-lab-policy-reporter
|
.PHONY: dev-lab-policy-reporter
|
||||||
dev-lab-policy-reporter: $(HELM) ## Deploy policy-reporter helm chart
|
dev-lab-policy-reporter: $(HELM) ## Deploy policy-reporter helm chart
|
||||||
|
|
18
scripts/config/dev/otel-collector.yaml
Normal file
18
scripts/config/dev/otel-collector.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
mode: daemonset
|
||||||
|
|
||||||
|
tolerations:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
|
|
||||||
|
config:
|
||||||
|
exporters:
|
||||||
|
otlp:
|
||||||
|
endpoint: tempo.monitoring:4317
|
||||||
|
tls:
|
||||||
|
insecure: true
|
||||||
|
|
||||||
|
service:
|
||||||
|
pipelines:
|
||||||
|
traces:
|
||||||
|
exporters:
|
||||||
|
- otlp
|
Loading…
Reference in a new issue