Test prometheusOperator - allanrogerr/public GitHub Wiki
Test prometheusOperator https://github.com/minio/operator/blob/master/docs/tenant_crd.adoc#pool
prometheusOperator boolean
Optional
Directs the MinIO Operator to use prometheus operator.
Tenant scrape configuration will be added to prometheus managed by the prometheus-operator.
Create a kind cluster
https://github.com/minio/operator
Deploy an operator usingIn the operator add under spec:
- name: PROMETHEUS_NAMESPACE
value: monitoring
https://github.com/minio/operator. Adjust servers based on the kind cluster.
Deploy a tenant usingAdd privileges
k edit clusterrole minio-operator-role
Ensure
- apiGroups:
- monitoring.coreos.com
resources:
- prometheuses
- prometheusagents
verbs:
- '*'
https://github.com/prometheus-operator/kube-prometheus). This installs by default to the monitoring
ns
Install prometheus monitoring (kubectl apply --server-side -f manifests/setup
kubectl wait \
--for condition=Established \
--all CustomResourceDefinition \
--namespace=monitoring
kubectl apply -f manifests/
Port forward Prometheus
k -n monitoring port-forward svc/prometheus-k8s 9090