> kubebuilder init --domain k8s.appscode.com --skip-go-version-check
> kubebuilder edit --multigroup=true
> kubebuilder create api --group management --version v1alpha1 --kind Project --namespaced=false
-
rancher-monitoring from Cluster Tools
-
Prometheus Federator
-
Add labels to cluster AlertManager and Prometheus
Annotation on Project in the app cluster
metadata:
annotations:
MEMORY_LIMIT_GB: '32'
STORAGE_LIMIT_GB: '200'
TCP_PORT_RANGE: 50000-50014
{uid}-{cluster-uid} | | V {uid}.{cluster-uid}.{projctId}
/register/
/{uid}-{cluster-uid}/
Data Source {cluster-name}-{projctId}
prometheus.prometheusSpec.ignoreNamespaceSelectors
ignoreNamespaceSelectors is always true
for Project Promethues. So, we have to create fake Service without labels to work around it.
-
External Name
service will not work prometheus-operator/prometheus-operator#3020