1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/example/otel-collector/Makefile

42 lines
2.4 KiB
Makefile
Raw Normal View History

2020-05-15 11:46:53 +02:00
namespace-k8s:
2020-05-19 07:29:52 +02:00
kubectl apply -f k8s/namespace.yaml
2020-05-14 11:11:51 +02:00
jaeger-operator-k8s:
# Create the jaeger operator and necessary artifacts in ns observability
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/crds/jaegertracing.io_jaegers_crd.yaml
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/service_account.yaml
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role.yaml
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role_binding.yaml
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/operator.yaml
2020-05-14 11:11:51 +02:00
# Create the cluster role & bindings
kubectl create -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/cluster_role.yaml
kubectl create -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/cluster_role_binding.yaml
2020-05-14 11:11:51 +02:00
jaeger-k8s:
kubectl apply -f k8s/jaeger.yaml
2020-05-14 11:11:51 +02:00
prometheus-k8s:
kubectl apply -f k8s/prometheus-service.yaml # Prometheus instance
kubectl apply -f k8s/prometheus-monitor.yaml # Service monitor
2020-05-14 11:11:51 +02:00
otel-collector-k8s:
kubectl apply -f k8s/otel-collector.yaml
clean-k8s:
2020-05-15 11:46:53 +02:00
- kubectl delete -f k8s/otel-collector.yaml
2020-05-14 11:11:51 +02:00
- kubectl delete -f k8s/prometheus-monitor.yaml
- kubectl delete -f k8s/prometheus-service.yaml
- kubectl delete -f k8s/jaeger.yaml
2020-05-14 11:11:51 +02:00
- kubectl delete -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/cluster_role.yaml
- kubectl delete -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/cluster_role_binding.yaml
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/crds/jaegertracing.io_jaegers_crd.yaml
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/service_account.yaml
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role.yaml
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role_binding.yaml
2020-05-19 07:29:52 +02:00
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/operator.yaml