diff --git a/packages/rancher-monitoring/overlay/CHANGELOG.md b/packages/rancher-monitoring/overlay/CHANGELOG.md index c920028cd..241a23e5b 100644 --- a/packages/rancher-monitoring/overlay/CHANGELOG.md +++ b/packages/rancher-monitoring/overlay/CHANGELOG.md @@ -18,7 +18,7 @@ All notable changes from the upstream Prometheus Operator chart will be added to - User who needs to be able to persist new Grafana datasources but does not need to be able to interact with Prometheus CRs: `.Values.grafana.sidecar.datasources.searchNamespace` (default `grafana-datasources`) namespace - Added default resource limits for `Prometheus Operator`, `Prometheus`, `AlertManager`, `Grafana`, `kube-state-metrics`, `node-exporter` - Added a default template `rancher_defaults.tmpl` to AlertManager that Rancher will offer to users in order to help configure the way alerts are rendered on a notifier. Also updated the default template deployed with this chart to reference that template and added an example of a Slack config using this template as a comment in the `values.yaml`. -- Added support for private registries via introducing a new field for `global.systemDefaultRegistry` that, if supplied, will automatically be prepended onto every image used by the chart. +- Added support for private registries via introducing a new field for `global.cattle.systemDefaultRegistry` that, if supplied, will automatically be prepended onto every image used by the chart. ### Modified - Updated the chart name from `prometheus-operator` to `rancher-monitoring` and added the `io.rancher.certified: rancher` annotation to `Chart.yaml` - Modified the default `node-exporter` port from `9100` to `9796` diff --git a/packages/rancher-monitoring/overlay/app-README.md b/packages/rancher-monitoring/overlay/app-README.md new file mode 100644 index 000000000..d7187fca9 --- /dev/null +++ b/packages/rancher-monitoring/overlay/app-README.md @@ -0,0 +1,16 @@ +# Rancher Monitoring + +This chart is based off of the upstream [Prometheus Operator](https://github.com/helm/charts/tree/master/stable/prometheus-operator) chart. It supports the following functionality to enable monitoring within your cluster: +- [[Prometheus Operator](https://github.com/coreos/prometheus-operator)] Provides easy monitoring definitions for Kubernetes services and the deployment and management of one or more [Prometheus / Alertmanager](https://prometheus.io/) instances and deploys default monitors / alerts onto the cluster +- [[Prometheus Operator](https://github.com/coreos/prometheus-operator)] Deploys the upstream [Grafana](https://github.com/helm/charts/tree/master/stable/grafana) chart and deploys default dashboards onto the cluster +- [[Prometheus Operator](https://github.com/coreos/prometheus-operator)] Monitors internal Kubernetes components by deploying components such as [node-exporter](https://github.com/helm/charts/tree/master/stable/prometheus-node-exporter) and [kube-state-metrics](https://github.com/helm/charts/tree/master/stable/kube-state-metrics) +- [[rancher-pushprox](https://github.com/rancher/charts/tree/dev-v2.5/packages/rancher-pushprox/charts)] Sets up default Deployments and DaemonSets to monitor `kube-scheduler`, `kube-controller-manager`, `kube-proxy`, and `kube-etcd` components via nodeSelectors / tolerations for certain cluster types +- [[Prometheus Adapter](https://github.com/helm/charts/tree/master/stable/prometheus-adapter)] Exposes custom metrics, resource metrics, and external metrics on the default [Prometheus](https://prometheus.io/) instance launched by [Prometheus Operator](https://github.com/coreos/prometheus-operator) + +You must install the Prometheus Operator CRDs first using the `rancher-monitoring-crd` chart before installing this chart. + +```bash +helm install rancher-monitoring-crd rancher/stable +``` + +For more information, see the README.md of this chart. diff --git a/packages/rancher-monitoring/rancher-monitoring.patch b/packages/rancher-monitoring/rancher-monitoring.patch index 1c5ff7095..0d822a401 100644 --- a/packages/rancher-monitoring/rancher-monitoring.patch +++ b/packages/rancher-monitoring/rancher-monitoring.patch @@ -1,7 +1,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/Chart.yaml packages/rancher-monitoring/charts/Chart.yaml --- packages/rancher-monitoring/charts-original/Chart.yaml +++ packages/rancher-monitoring/charts/Chart.yaml -@@ -1,22 +1,29 @@ +@@ -1,22 +1,28 @@ apiVersion: v1 appVersion: 0.38.1 -description: Provides easy monitoring definitions for Kubernetes services, and deployment @@ -11,9 +11,8 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/Cha + catalog.cattle.io/namespace: cattle-monitoring-system + catalog.cattle.io/release-name: rancher-monitoring + catalog.cattle.io/ui-component: monitoring -+ catalog.cattle.io/auto-install: rancher-monitoring-crd=match + catalog.cattle.io/provides-gvr: monitoring.coreos.com.prometheus/v1 -+description: A Rancher chart that modifies the upstream Prometheus Operator chart, which provides easy monitoring definitions for Kubernetes services and the deployment and management of Prometheus instances, and enables Prometheus Adapter on a default Prometheus instance. ++description: Modifies the upstream Prometheus Operator chart, which provides easy monitoring definitions for Kubernetes services and the deployment and management of Prometheus instances, and enables Prometheus Adapter on a default Prometheus instance. engine: gotpl home: https://github.com/coreos/prometheus-operator icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png @@ -657,14 +656,39 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/req diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/templates/_helpers.tpl packages/rancher-monitoring/charts/templates/_helpers.tpl --- packages/rancher-monitoring/charts-original/templates/_helpers.tpl +++ packages/rancher-monitoring/charts/templates/_helpers.tpl -@@ -1,3 +1,12 @@ +@@ -1,3 +1,37 @@ +# Rancher +{{- define "system_default_registry" -}} -+{{- if .Values.global.systemDefaultRegistry -}} -+{{- printf "%s/" .Values.global.systemDefaultRegistry -}} ++{{- if .Values.global.cattle.systemDefaultRegistry -}} ++{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} +{{- end -}} +{{- end -}} + ++# Special Exporters ++{{- define "exporter.kubeEtcd.enabled" -}} ++{{- if or .Values.kubeEtcd.enabled .Values.rkeEtcd.enabled .Values.kubeAdmEtcd.enabled .Values.rke2Etcd.enabled -}} ++"true" ++{{- end -}} ++{{- end }} ++ ++{{- define "exporter.kubeControllerManager.enabled" -}} ++{{- if or .Values.kubeControllerManager.enabled .Values.rkeControllerManager.enabled .Values.k3sControllerManager.enabled .Values.kubeAdmControllerManager.enabled .Values.rke2ControllerManager.enabled -}} ++"true" ++{{- end -}} ++{{- end }} ++ ++{{- define "exporter.kubeScheduler.enabled" -}} ++{{- if or .Values.kubeScheduler.enabled .Values.rkeScheduler.enabled .Values.k3sScheduler.enabled .Values.kubeAdmScheduler.enabled .Values.rke2Scheduler.enabled -}} ++"true" ++{{- end -}} ++{{- end }} ++ ++{{- define "exporter.kubeProxy.enabled" -}} ++{{- if or .Values.kubeProxy.enabled .Values.rkeProxy.enabled .Values.k3sProxy.enabled .Values.kubeAdmProxy.enabled .Values.rke2Proxy.enabled -}} ++"true" ++{{- end -}} ++{{- end }} ++ +# Prometheus Operator + {{/* vim: set filetype=mustache: */}} @@ -763,7 +787,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled .Values.kubeEtcd.enabled }} +{{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} -+{{- if or .Values.kubeEtcd.enabled .Values.rkeEtcd.enabled .Values.kubeAdmEtcd.enabled .Values.rke2Etcd.enabled }} ++{{- if (include "exporter.kubeEtcd.enabled" .)}} apiVersion: v1 kind: ConfigMap metadata: @@ -944,7 +968,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled .Values.kubeControllerManager.enabled }} +{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} -+{{- if or .Values.kubeControllerManager.enabled .Values.rkeControllerManager.enabled .Values.k3sControllerManager.enabled .Values.kubeAdmControllerManager.enabled .Values.rke2ControllerManager.enabled }} ++{{- if (include "exporter.kubeControllerManager.enabled" .)}} apiVersion: v1 kind: ConfigMap metadata: @@ -969,7 +993,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled .Values.kubeEtcd.enabled }} +{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} -+{{- if or .Values.kubeEtcd.enabled .Values.rkeEtcd.enabled .Values.kubeAdmEtcd.enabled .Values.rke2Etcd.enabled}} ++{{- if (include "exporter.kubeEtcd.enabled" .)}} apiVersion: v1 kind: ConfigMap metadata: @@ -1198,7 +1222,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled .Values.kubeProxy.enabled }} +{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} -+{{- if or .Values.kubeProxy.enabled .Values.rkeProxy.enabled .Values.k3sProxy.enabled .Values.kubeAdmProxy.enabled .Values.rke2Proxy.enabled }} ++{{- if (include "exporter.kubeProxy.enabled" .)}} apiVersion: v1 kind: ConfigMap metadata: @@ -1224,7 +1248,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled .Values.kubeScheduler.enabled }} +{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} -+{{- if or .Values.kubeScheduler.enabled .Values.rkeScheduler.enabled .Values.k3sScheduler.enabled .Values.kubeAdmScheduler.enabled .Values.rke2Scheduler.enabled }} ++{{- if (include "exporter.kubeScheduler.enabled" .)}} apiVersion: v1 kind: ConfigMap metadata: @@ -1319,7 +1343,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeEtcd.enabled .Values.defaultRules.rules.etcd }} +{{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.etcd }} -+{{- if or .Values.kubeEtcd.enabled .Values.rkeEtcd.enabled .Values.kubeAdmEtcd.enabled .Values.rke2Etcd.enabled }} ++{{- if (include "exporter.kubeEtcd.enabled" .)}} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: @@ -1339,7 +1363,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeScheduler.enabled .Values.defaultRules.rules.kubeScheduler }} +{{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.kubeScheduler }} -+{{- if or .Values.kubeScheduler.enabled .Values.rkeScheduler.enabled .Values.k3sScheduler.enabled .Values.kubeAdmScheduler.enabled .Values.rke2Scheduler.enabled }} ++{{- if (include "exporter.kubeScheduler.enabled" .)}} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: @@ -1358,7 +1382,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem severity: critical {{- end }} -{{- if .Values.kubeControllerManager.enabled }} -+{{- if or .Values.kubeControllerManager.enabled .Values.rkeControllerManager.enabled .Values.k3sControllerManager.enabled .Values.kubeAdmControllerManager.enabled .Values.rke2ControllerManager.enabled }} ++{{- if (include "exporter.kubeControllerManager.enabled" .)}} - alert: KubeControllerManagerDown annotations: message: KubeControllerManager has disappeared from Prometheus target discovery. @@ -1367,7 +1391,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem severity: critical {{- end }} -{{- if .Values.kubeScheduler.enabled }} -+{{- if or .Values.kubeScheduler.enabled .Values.rkeScheduler.enabled .Values.k3sScheduler.enabled .Values.kubeAdmScheduler.enabled .Values.rke2Scheduler.enabled }} ++{{- if (include "exporter.kubeScheduler.enabled" .)}} - alert: KubeSchedulerDown annotations: message: KubeScheduler has disappeared from Prometheus target discovery. @@ -1380,7 +1404,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeEtcd.enabled .Values.defaultRules.rules.etcd }} +{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.etcd }} -+{{- if or .Values.kubeEtcd.enabled .Values.rkeEtcd.enabled .Values.kubeAdmEtcd.enabled .Values.rke2Etcd.enabled }} ++{{- if (include "exporter.kubeEtcd.enabled" .)}} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: @@ -1401,7 +1425,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeScheduler.enabled .Values.defaultRules.rules.kubeScheduler }} +{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.kubeScheduler }} -+{{- if or .Values.kubeScheduler.enabled .Values.rkeScheduler.enabled .Values.k3sScheduler.enabled .Values.kubeAdmScheduler.enabled .Values.rke2Scheduler.enabled }} ++{{- if (include "exporter.kubeScheduler.enabled" .)}} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: @@ -1421,7 +1445,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeControllerManager.enabled }} +{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create }} -+{{- if or .Values.kubeControllerManager.enabled .Values.rkeControllerManager.enabled .Values.k3sControllerManager.enabled .Values.kubeAdmControllerManager.enabled .Values.rke2ControllerManager.enabled }} ++{{- if (include "exporter.kubeControllerManager.enabled" .)}} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: @@ -1430,7 +1454,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem - name: kubernetes-system-controller-manager rules: -{{- if .Values.kubeControllerManager.enabled }} -+{{- if or .Values.kubeControllerManager.enabled .Values.rkeControllerManager.enabled .Values.k3sControllerManager.enabled .Values.kubeAdmControllerManager.enabled .Values.rke2ControllerManager.enabled }} ++{{- if (include "exporter.kubeControllerManager.enabled" .)}} - alert: KubeControllerManagerDown annotations: message: KubeControllerManager has disappeared from Prometheus target discovery. @@ -1450,7 +1474,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} -{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeScheduler.enabled .Values.defaultRules.rules.kubeScheduler }} +{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.kubeScheduler }} -+{{- if or .Values.kubeScheduler.enabled .Values.rkeScheduler.enabled .Values.k3sScheduler.enabled .Values.kubeAdmScheduler.enabled .Values.rke2Scheduler.enabled }} ++{{- if (include "exporter.kubeScheduler.enabled" .)}} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: @@ -1459,7 +1483,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/tem - name: kubernetes-system-scheduler rules: -{{- if .Values.kubeScheduler.enabled }} -+{{- if or .Values.kubeScheduler.enabled .Values.rkeScheduler.enabled .Values.k3sScheduler.enabled .Values.kubeAdmScheduler.enabled .Values.rke2Scheduler.enabled }} ++{{- if (include "exporter.kubeScheduler.enabled" .)}} - alert: KubeSchedulerDown annotations: message: KubeScheduler has disappeared from Prometheus target discovery. @@ -2027,11 +2051,12 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Provide a k8s version to auto dashboard import script example: kubeTargetVersionOverride: 1.16.6 ## -@@ -76,8 +334,18 @@ +@@ -76,8 +334,19 @@ ## global: -+ systemDefaultRegistry: "" ++ cattle: ++ systemDefaultRegistry: "" rbac: + ## Create RBAC resources for ServiceAccounts and users + ## @@ -2046,7 +2071,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val pspEnabled: true pspAnnotations: {} ## Specify pod annotations -@@ -130,6 +398,22 @@ +@@ -130,6 +399,22 @@ ## ref: https://prometheus.io/docs/alerting/configuration/#configuration-file ## https://prometheus.io/webtools/alerting/routing-tree-editor/ ## @@ -2069,7 +2094,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val config: global: resolve_timeout: 5m -@@ -145,6 +429,8 @@ +@@ -145,6 +430,8 @@ receiver: 'null' receivers: - name: 'null' @@ -2078,7 +2103,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Pass the Alertmanager configuration directives through Helm's templating ## engine. If the Alertmanager configuration contains Alertmanager templates, -@@ -160,25 +446,76 @@ +@@ -160,25 +447,76 @@ ## ref: https://prometheus.io/docs/alerting/notifications/ ## https://prometheus.io/docs/alerting/notification_examples/ ## @@ -2174,7 +2199,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ingress: enabled: false -@@ -334,7 +671,7 @@ +@@ -334,7 +672,7 @@ ## Image of Alertmanager ## image: @@ -2183,7 +2208,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val tag: v0.20.0 ## If true then the user will be responsible to provide a secret with alertmanager configuration -@@ -409,9 +746,13 @@ +@@ -409,9 +747,13 @@ ## Define resources requests and limits for single Pods. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/ ## @@ -2200,7 +2225,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node. ## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided. -@@ -486,6 +827,9 @@ +@@ -486,6 +828,9 @@ enabled: true namespaceOverride: "" @@ -2210,7 +2235,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Deploy default dashboards. ## defaultDashboardsEnabled: true -@@ -529,6 +873,7 @@ +@@ -529,6 +874,7 @@ dashboards: enabled: true label: grafana_dashboard @@ -2218,7 +2243,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Annotations for Grafana dashboard configmaps ## -@@ -547,6 +892,7 @@ +@@ -547,6 +893,7 @@ ## ref: https://git.io/fjaBS createPrometheusReplicasDatasources: false label: grafana_datasource @@ -2226,7 +2251,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val extraConfigmapMounts: [] # - name: certs-configmap -@@ -574,6 +920,19 @@ +@@ -574,6 +921,19 @@ ## service: portName: service @@ -2246,7 +2271,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## If true, create a serviceMonitor for grafana ## -@@ -599,6 +958,14 @@ +@@ -599,6 +959,14 @@ # targetLabel: nodename # replacement: $1 # action: replace @@ -2261,7 +2286,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Component scraping the kube api server ## -@@ -755,7 +1122,7 @@ +@@ -755,7 +1123,7 @@ ## Component scraping the kube controller manager ## kubeControllerManager: @@ -2270,7 +2295,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## If your kube controller manager is not deployed as a pod, specify IPs it can be found on ## -@@ -888,7 +1255,7 @@ +@@ -888,7 +1256,7 @@ ## Component scraping etcd ## kubeEtcd: @@ -2279,7 +2304,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## If your etcd is not deployed as a pod, specify IPs it can be found on ## -@@ -948,7 +1315,7 @@ +@@ -948,7 +1316,7 @@ ## Component scraping kube scheduler ## kubeScheduler: @@ -2288,7 +2313,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## If your kube scheduler is not deployed as a pod, specify IPs it can be found on ## -@@ -1001,7 +1368,7 @@ +@@ -1001,7 +1369,7 @@ ## Component scraping kube proxy ## kubeProxy: @@ -2297,7 +2322,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## If your kube proxy is not deployed as a pod, specify IPs it can be found on ## -@@ -1075,6 +1442,13 @@ +@@ -1075,6 +1443,13 @@ create: true podSecurityPolicy: enabled: true @@ -2311,7 +2336,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Deploy node exporter as a daemonset to all nodes ## -@@ -1124,6 +1498,16 @@ +@@ -1124,6 +1499,16 @@ extraArgs: - --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+)($|/) - --collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$ @@ -2328,7 +2353,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Manages Prometheus and Alertmanager components ## -@@ -1137,7 +1521,7 @@ +@@ -1137,7 +1522,7 @@ tlsProxy: enabled: true image: @@ -2337,7 +2362,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val tag: v1.5.2 pullPolicy: IfNotPresent resources: {} -@@ -1154,7 +1538,7 @@ +@@ -1154,7 +1539,7 @@ patch: enabled: true image: @@ -2346,7 +2371,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val tag: v1.2.1 pullPolicy: IfNotPresent resources: {} -@@ -1280,13 +1664,13 @@ +@@ -1280,13 +1665,13 @@ ## Resource limits & requests ## @@ -2367,7 +2392,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val # Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico), # because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working -@@ -1330,20 +1714,20 @@ +@@ -1330,20 +1715,20 @@ ## Prometheus-operator image ## image: @@ -2391,7 +2416,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val tag: v0.38.1 ## Set the prometheus config reloader side-car CPU limit -@@ -1354,13 +1738,6 @@ +@@ -1354,13 +1739,6 @@ ## configReloaderMemory: 25Mi @@ -2405,7 +2430,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Deploy a Prometheus instance ## prometheus: -@@ -1577,7 +1954,7 @@ +@@ -1577,7 +1955,7 @@ ## Image of Prometheus. ## image: @@ -2414,7 +2439,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val tag: v2.18.1 ## Tolerations for use with node taints -@@ -1628,6 +2005,11 @@ +@@ -1628,6 +2006,11 @@ ## externalUrl: "" @@ -2426,7 +2451,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## Define which Nodes the Pods are scheduled on. ## ref: https://kubernetes.io/docs/user-guide/node-selection/ ## -@@ -1660,7 +2042,7 @@ +@@ -1660,7 +2043,7 @@ ## prometheus resource to be created with selectors based on values in the helm deployment, ## which will also match the PrometheusRule resources created ## @@ -2435,7 +2460,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## PrometheusRules to be selected for target discovery. ## If {}, select all ServiceMonitors -@@ -1685,7 +2067,7 @@ +@@ -1685,7 +2068,7 @@ ## prometheus resource to be created with selectors based on values in the helm deployment, ## which will also match the servicemonitors created ## @@ -2444,7 +2469,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## ServiceMonitors to be selected for target discovery. ## If {}, select all ServiceMonitors -@@ -1705,7 +2087,7 @@ +@@ -1705,7 +2088,7 @@ ## prometheus resource to be created with selectors based on values in the helm deployment, ## which will also match the podmonitors created ## @@ -2453,7 +2478,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rancher-monitoring/charts-original/val ## PodMonitors to be selected for target discovery. ## If {}, select all PodMonitors -@@ -1802,9 +2184,13 @@ +@@ -1802,9 +2185,13 @@ ## Resource limits & requests ## diff --git a/packages/rancher-pushprox/charts/Chart.yaml b/packages/rancher-pushprox/charts/Chart.yaml index 54d1138d3..a1a064ac3 100644 --- a/packages/rancher-pushprox/charts/Chart.yaml +++ b/packages/rancher-pushprox/charts/Chart.yaml @@ -5,7 +5,8 @@ annotations: catalog.rancher.io/certified: rancher catalog.rancher.io/namespace: cattle-monitoring-system catalog.rancher.io/release-name: rancher-pushprox -description: A Rancher chart based on PushProx that sets up a deployment of the PushProx proxy and a DaemonSet of PushProx clients on a Kubernetes cluster. + catalog.cattle.io/hidden: "true" +description: Sets up a deployment of the PushProx proxy and a DaemonSet of PushProx clients. name: rancher-pushprox # A chart can be either an 'application' or a 'library' chart. diff --git a/packages/rancher-pushprox/charts/templates/_helpers.tpl b/packages/rancher-pushprox/charts/templates/_helpers.tpl index 4e5632f1d..cb1866637 100644 --- a/packages/rancher-pushprox/charts/templates/_helpers.tpl +++ b/packages/rancher-pushprox/charts/templates/_helpers.tpl @@ -1,8 +1,8 @@ # Rancher {{- define "system_default_registry" -}} -{{- if .Values.global.systemDefaultRegistry -}} -{{- printf "%s/" .Values.global.systemDefaultRegistry -}} +{{- if .Values.global.cattle.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} {{- end -}} {{- end -}} diff --git a/packages/rancher-pushprox/charts/values.yaml b/packages/rancher-pushprox/charts/values.yaml index d34404a6c..7dc8fb80d 100644 --- a/packages/rancher-pushprox/charts/values.yaml +++ b/packages/rancher-pushprox/charts/values.yaml @@ -13,7 +13,8 @@ # Configuration global: - systemDefaultRegistry: "" + cattle: + systemDefaultRegistry: "" # The component that is being monitored (i.e. etcd) component: "component"