Files
cozystack/packages/system/monitoring/Makefile
Andrei Kvapil a120ce726e DX: Use generic Makefile for packages (#288)
This change is aimed at improving the development experience.

- The option `make delete` has been added.
- Added check for `NAME` and `NAMESPACE` variables
- Now, any package (not just system ones) can include options such as
make show, make diff, make apply.
- Applications from packages/extra require explicit specification of the
`NAMESPACE`.
- Applications from packages/apps require explicit specification of both
`NAME` and `NAMESPACE`.

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2024-08-16 10:26:13 +02:00

18 lines
637 B
Makefile

export NAME=monitoring
export NAMESPACE=cozy-$(NAME)
include ../../../scripts/package.mk
update:
rm -rf charts
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update prometheus-community
# Kube-state-metrics
helm pull prometheus-community/kube-state-metrics --untar --untardir charts
# Node-exporter
helm pull prometheus-community/prometheus-node-exporter --untar --untardir charts
# Metrics-server
helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/
helm repo update metrics-server
helm pull metrics-server/metrics-server --untar --untardir charts