Skip to content

Commit 9ba998c

Browse files
committed
Remove prometheus dependency
Disable ServiceMonitors in kustomize to remove prometheus dependency for now
1 parent 18d0377 commit 9ba998c

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

config/default/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ resources:
2424
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
2525
#- ../certmanager
2626
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
27-
- ../prometheus
27+
#- ../prometheus
2828
# [METRICS] Expose the controller manager metrics service.
29-
- metrics_service.yaml
29+
#- metrics_service.yaml
3030
# [NETWORK POLICY] Protect the /metrics endpoint and Webhook Server with NetworkPolicy.
3131
# Only Pod(s) running a namespace labeled with 'metrics: enabled' will be able to gather the metrics.
3232
# Only CR(s) which requires webhooks and are applied on namespaces labeled with 'webhooks: enabled' will

hack/create-kind-cluster.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -164,20 +164,6 @@ function install_keda() {
164164
kubectl wait deployment --all --timeout=-1s --for=condition=Available --namespace keda
165165
}
166166

167-
function install_prometheus() {
168-
header_text "Installing Prometheus Operator"
169-
170-
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
171-
helm repo update
172-
kubectl create namespace prometheus
173-
helm install prometheus prometheus-community/kube-prometheus-stack --namespace prometheus \
174-
--set grafana.enabled=false \
175-
--set prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false
176-
177-
header_text "Waiting for Prometheus operator to become ready"
178-
kubectl wait deployment --all --timeout=-1s --for=condition=Available --namespace prometheus
179-
}
180-
181167
if [ "$DELETE_CLUSTER_BEFORE" = "true" ]; then
182168
delete_existing_cluster
183169
fi
@@ -189,6 +175,5 @@ install_tekton
189175
install_knative_serving
190176
install_knative_eventing
191177
install_keda
192-
install_prometheus
193178

194179
header_text "All components installed"

0 commit comments

Comments
 (0)