Commit Graph

305 Commits (b4b4ec834f1eba835a8d0d9af67d1189f6e24018)

Author SHA1 Message Date
Arvind Iyengar d652d4db01
(dev-v2.6-archive) Add nginx proxy to Prometheus for magic links
This commit adds an nginx proxy in front of Prometheus that intercepts the requests that are sent to the Prometheus pod. This change was necessary since the Prometheus pod encounters issues with Rancher proxy URLs that are formatted like:

```
<server-url>/k8s/clusters/<cluster-id>/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-prometheus:9090/proxy
```

Specifically, if using the root_url option, it doubles up this URL when making requests for resources, e.g.
```
<server-url>/k8s/clusters/<cluster-id>/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-prometheus:9090/proxy/<my-path>
=>
<server-url>/k8s/clusters/<cluster-id>/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-prometheus:9090/proxy/k8s/clusters/<cluster-id>/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-prometheus:9090/proxy/<my-path>
```

However, this does not resolve the issue in https://github.com/rancher/rancher/issues/29068.

(partially cherry picked from commit 92f0eca770)
2022-01-06 11:33:30 -08:00
Arvind Iyengar b9758f95c4
(dev-v2.6-archive) Add nginx proxy to Grafana for magic links
This commit adds an nginx proxy in front of Grafana that intercepts the requests that are sent to the Grafana pod. This change was necessary since the Grafana pod encounters issues with Rancher proxy URLs that are formatted like:

```
<server-url>/k8s/clusters/<cluster-id>/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-grafana:80/proxy
```

Specifically, if using the root_url option, it doubles up this URL when making requests for resources, e.g.
```
<server-url>/k8s/clusters/<cluster-id>/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-grafana:80/proxy/<my-path>
=>
<server-url>/k8s/clusters/<cluster-id>/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-grafana:80/proxy/k8s/clusters/<cluster-id>/api/v1/namespaces/cattle-monitoring-system/services/http:rancher-monitoring-grafana:80/proxy/<my-path>
```

(partially cherry picked from commit d6c774aa42)
2022-01-06 11:33:29 -08:00
maggieliu 2e262303da
(dev-v2.6-archive) Merge pull request #674 from aiyengar2/fix_monitoring_chart_hardened
Support monitoring in hardened RKE clusters

(partially cherry picked from commit 34fdd14bca)
2022-01-06 11:33:28 -08:00
Steven Crespo ed4687076b
(dev-v2.6-archive) Merge pull request #670 from PennyScissors/update-gk-v3.1.1
Update gatekeeper to version 3.1.1

(partially cherry picked from commit 32f1b41934)
2022-01-06 11:33:26 -08:00
Steven Crespo b21fe035b5
(dev-v2.6-archive) Update gatekeeper to v3.1.1
(partially cherry picked from commit 5757f8cc15)
2022-01-06 11:33:25 -08:00
Arvind Iyengar ae60d235cb
(dev-v2.6-archive) Support monitoring in hardened RKE clusters
This commit adds support for deploying rancher-monitoring into hardened clusters.

It modifies some of the default securityContexts and does some misc. fixes such as:
- Removing default AppArmor PSP annotations from Grafana (related to https://github.com/helm/charts/issues/9090)
- Modifying rkeScheduler and rkeControllerManager to use localhost to scrape components since the endpoints aren't exposed in a hardened cluster

These changes have been verified on a hardened RKE cluster.

(partially cherry picked from commit e3d6033572)
2022-01-06 11:33:25 -08:00
Arvind Iyengar 5b49312554
(dev-v2.6-archive) Use separate namespace only for dashboards
This commit renames `grafana-dashboards` to `cattle-dashboards` and deprecates the `grafana-datasources` namespace in favor of the normal release namespace.

Related Issue: rancher/rancher#28887

(partially cherry picked from commit b80fb3a8ff)
2022-01-06 11:33:23 -08:00
Arvind Iyengar a4d132cf54
(dev-v2.6-archive) Split RBAC for ConfigMaps and Secrets
Related Issue: https://github.com/rancher/rancher/issues/29013

(partially cherry picked from commit 0fa3a06de0)
2022-01-06 11:33:22 -08:00
Arvind Iyengar a05cd088c8
(dev-v2.6-archive) Relocate Rancher roles to overlay/
(partially cherry picked from commit 2e1ed1b130)
2022-01-06 11:33:22 -08:00
Arvind Iyengar 6e9ba81e6d
(dev-v2.6-archive) Add annotations that were left out on rebase
Dropped on accident in rebase https://github.com/rancher/charts/pull/641/files#diff-ed5b5b87cf149adc6a6408bf81993efdR681-R682

(partially cherry picked from commit 95cf887f5f)
2022-01-06 11:33:21 -08:00
aiyengar2 d6e2d6fe20
(dev-v2.6-archive) Merge pull request #666 from aiyengar2/fix_kube_dns_namespace
Create kube-dns service monitor in kube-system

(partially cherry picked from commit 034952747f)
2022-01-06 11:33:20 -08:00
Brenda Rearden cea35722ed
(dev-v2.6-archive) Set installer repo,tag in values.yaml
(partially cherry picked from commit 9932422f51)
2022-01-06 11:33:20 -08:00
Rajashree Mandaogane d9d9732036
(dev-v2.6-archive) Merge pull request #663 from mrajashree/upd
Update resourceset to include configmaps for clusterrepos

(partially cherry picked from commit 820f105aa2)
2022-01-06 11:33:19 -08:00
Arvind Iyengar 6d6bc2110a
(dev-v2.6-archive) Create kube-dns service monitor in kube-system
This is required since, by default, we ignoreNamespaceSelectors.

(partially cherry picked from commit 700975ee95)
2022-01-06 11:33:19 -08:00
aiyengar2 f04ef106ae
(dev-v2.6-archive) Merge pull request #662 from aiyengar2/use_new_busybox
Replace rancher/busybox w/ rancher/library-busybox

(partially cherry picked from commit afb3af8690)
2022-01-06 11:33:18 -08:00
Prachi Damle 866397beaa
(dev-v2.6-archive) Delete tgz files from assets, parameter in the post-install hook for namespace should use the
helm templating

(partially cherry picked from commit 2dd35d89bb)
2022-01-06 11:33:16 -08:00
Brenda Rearden 8e6e45ad6d
(dev-v2.6-archive) Update kiali to 1.23.0
(partially cherry picked from commit d397bb512c)
2022-01-06 11:33:16 -08:00
Daishan Peng e7c5d7a499
(dev-v2.6-archive) Merge pull request #660 from StrongMonkey/add-rio-annotations
Add istio dependency to rio chart

(partially cherry picked from commit 4cd7a24bd8)
2022-01-06 11:33:14 -08:00
Arvind Iyengar 5e6cfe0671
(dev-v2.6-archive) Replace rancher/busybox w/ rancher/library-busybox
Related Issue: https://github.com/rancher/rancher/issues/28978

(partially cherry picked from commit c263e58157)
2022-01-06 11:33:14 -08:00
Arvind Iyengar b8cec21d48
(dev-v2.6-archive) Rebase to new upstream at kube-prometheus-stack
The old upstream at https://github.com/helm/charts/tree/master/stable/prometheus-operator has been deprecated in favor of the chart at https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack.

This commit modifies the rancher-monitoring patch in order to rebase to this new upstream, so it contains a ton of different changes to the patch file.

Related Issue: rancher/rancher#28822

(partially cherry picked from commit 178528b12c)
2022-01-06 11:33:13 -08:00
Arvind Iyengar 970d5e7246
(dev-v2.6-archive) Create Alertmanager secret in pre-install hook
(partially cherry picked from commit d03ffe81df)
2022-01-06 11:33:08 -08:00
Arvind Iyengar ef6896d23d
(dev-v2.6-archive) Update docs, descriptions, and other minor fixes
- [rancher-pushprox] add hidden annotation + update description
- [rancher-monitoring] update description + add monitoring app-README.md
- [rancher-monitoring|rancher-pushprox] Move systemDefaultRegistry to global.cattle
- [rancher-monitoring] Move exporter enabled logic to _helpers.tpl

(partially cherry picked from commit 4d5653b2ec)
2022-01-06 11:33:06 -08:00
Steven Crespo 5fbdeaedb4
(dev-v2.6-archive) Merge pull request #616 from PennyScissors/update-gatekeeper-v3.1.0
Update opa gatekeeper to v3.1.0

(partially cherry picked from commit 81c286cb9f)
2022-01-06 11:33:03 -08:00
Steven Crespo 7c9064ca09
(dev-v2.6-archive) Update opa gatekeeper to v3.1.0
(partially cherry picked from commit fb8c308737)
2022-01-06 11:33:02 -08:00
Brenda Rearden ac8e1a52cd
(dev-v2.6-archive) Merge pull request #627 from brendarearden/istio-version-rollback
Add annotation changes to version Istio 1.6.8

(partially cherry picked from commit 1322150a57)
2022-01-06 11:33:02 -08:00
Brenda Rearden 759d9a2f35
(dev-v2.6-archive) Add annotation changes to version Istio 1.6.8
(partially cherry picked from commit 583b669a92)
2022-01-06 11:33:01 -08:00
aiyengar2 47f53fb0ab
(dev-v2.6-archive) Merge pull request #595 from aiyengar2/change_crd_ownership
Add generateCRDChart.assumeOwnershipOfCRDs flag

(partially cherry picked from commit 7d32212d2c)
2022-01-06 11:33:00 -08:00
Prachi Damle 3a84d26ed3
(dev-v2.6-archive) Adding rancher-cis-benchmark-crds - CRD chart for CIS v2
Adding rancher-cis-benchmark - Main chart for deploying cis-operator

Review comments and changes CRDs and adding the roles

Adding default ClusterScanProfiles in a Configmap

Updating kubernetes version to have major.minor.patch

Package the CRDs within the original chart and add package.yaml

chart changes for tolerations, crds, added
global.cattle.systemDefaultRegistry

Review changes to removed nodeSelector helper, combine all cis clusterroles in one file

CRD name change and adding keywords, moving package.yaml one folder upi
Renamed hardened benchmark
Move providesGVR to chart.yaml

(partially cherry picked from commit b55e6ec019)
2022-01-06 11:32:59 -08:00
Arvind Iyengar 60bbba3221
(dev-v2.6-archive) Use assumeOwnershipOfCRDs for rancher-monitoring
(partially cherry picked from commit 9fe6ed19c1)
2022-01-06 11:32:59 -08:00
Brenda Rearden 40ab3830d6
(dev-v2.6-archive) Add providesGVR to patch file and remove from package.yaml
(partially cherry picked from commit da849a2dee)
2022-01-06 11:32:58 -08:00
Caleb Bron 8d769b2a5b
(dev-v2.6-archive) Make monitoring gvr singular
(partially cherry picked from commit f223cb6b6d)
2022-01-06 11:32:57 -08:00
Brenda Rearden 6fbadc5687
(dev-v2.6-archive) Update provides/requires gvr, added keywords
(partially cherry picked from commit aa13a90e13)
2022-01-06 11:32:57 -08:00
Arvind Iyengar 97c85e9597
(dev-v2.6-archive) Use Rancher mirror for jettech/kube-webhook-certgen
(partially cherry picked from commit 30aa33a5b1)
2022-01-06 11:32:55 -08:00
Caleb Bron 146a4d2bf0
(dev-v2.6-archive) update how we manage dependency annotations
(partially cherry picked from commit 92211af12a)
2022-01-06 11:32:55 -08:00
Arvind Iyengar bc85f45531
(dev-v2.6-archive) Use Rancher images for monitoring subcharts
(partially cherry picked from commit 1b0deff7a9)
2022-01-06 11:32:54 -08:00
Arvind Iyengar 079f3c0c0c
(dev-v2.6-archive) Add private registry to monitoring subcharts
(partially cherry picked from commit bd24317ee8)
2022-01-06 11:32:54 -08:00
Arvind Iyengar 43f504d503
(dev-v2.6-archive) Use fixed versions for subcharts of rancher-monitoring
(partially cherry picked from commit 43efb64f82)
2022-01-06 11:32:53 -08:00
Arvind Iyengar 7e2065bc4d
(dev-v2.6-archive) fix typos in alerting config
(partially cherry picked from commit 3b6f47638d)
2022-01-06 11:32:53 -08:00
aiyengar2 5b05df23a9
(dev-v2.6-archive) Merge pull request #599 from aiyengar2/update_default_alerting_template
Update default Alerting template for defaults set in UI

(partially cherry picked from commit 5825928eac)
2022-01-06 11:32:50 -08:00
Darren Shepherd b96368994d
(dev-v2.6-archive) Fleet v0.3.0-alpha5
(partially cherry picked from commit d3a7562fda)
2022-01-06 11:32:48 -08:00
Arvind Iyengar 25f1d860c0
(dev-v2.6-archive) Update default Alerting template
(partially cherry picked from commit 6bc9f8c45f)
2022-01-06 11:32:48 -08:00
Arvind Iyengar 5d7ce13351
(dev-v2.6-archive) Rearrange patch
This commit is required due to patch flip-flops that will occur till https://github.com/rancher/rancher/issues/28627 is resolved.

(partially cherry picked from commit 267b8afc95)
2022-01-06 11:32:47 -08:00
Caleb Bron 54dcb1a2ef
(dev-v2.6-archive) Merge pull request #544 from MonzElmasry/rke2-monitoring
rke2-monitoring

(partially cherry picked from commit a8748de0f4)
2022-01-06 11:32:46 -08:00
Brenda Rearden 5fc81128ca
(dev-v2.6-archive) Merge pull request #577 from brendarearden/kiali-fixes
Update kiali image conventions, remove release.name from naming convention

(partially cherry picked from commit 95800e5bd0)
2022-01-06 11:32:45 -08:00
Brenda Rearden 036a7bef97
(dev-v2.6-archive) Remove release name, refactor image values, update web_root
(partially cherry picked from commit 5da19fc4a4)
2022-01-06 11:32:45 -08:00
Menna 2f3f12fa4c
(dev-v2.6-archive) add rke2proxy toleration
(partially cherry picked from commit 7c63442e79)
2022-01-06 11:32:44 -08:00
Menna f28495743d
(dev-v2.6-archive) Adds support for monitoring the following k8s components in rke2 clusters:
- `rke2-scheduler`
- `rke2-controller-manager`
- `rke2-proxy`
- `rke2-etcd`

All exporters are created from the cattle-pushprox chart. This commit
also modifies the relevant Grafana Dashboard ConfigMaps and
PrometheusRules to deploy if the PushProx exporters are enabled.

See changes to `overlay/CHANGELOG.md` for details on what has been added/modified.

(partially cherry picked from commit e5dfdc5c88)
2022-01-06 11:32:44 -08:00
Arvind Iyengar 200aba0f0e
(dev-v2.6-archive) Use Rancher images for rancher-monitoring
(partially cherry picked from commit e0d3e6519b)
2022-01-06 11:32:43 -08:00
Arvind Iyengar 261ea5234f
(dev-v2.6-archive) Add private registry support to rancher-monitoring
(partially cherry picked from commit aa30c498ea)
2022-01-06 11:32:42 -08:00
Arvind Iyengar c5b386d2e8
(dev-v2.6-archive) Add alerting support to rancher-monitoring
(partially cherry picked from commit d085bc088f)
2022-01-06 11:32:39 -08:00
Arvind Iyengar 77be6b1378
(dev-v2.6-archive) Change default to all CRs in all namespaces
This commit sets the following field to false:
`<serviceMonitor|podMonitor|rule>SelectorNilUsesHelmValues: true`

As a result, we look for all CRs with any labels in all namespaces rather than just
the ones tagged with `release: rancher-monitoring`.

(partially cherry picked from commit d2bf307e59)
2022-01-06 11:32:30 -08:00
Arvind Iyengar 1167f62350
(dev-v2.6-archive) Update grafana default deploymentStrategy
If the Grafana deployment strategy is not Recreate, the deployment will
be stuck during an upgrade when PV is attached.

(partially cherry picked from commit f3aebdca14)
2022-01-06 11:32:30 -08:00
Arvind Iyengar 99cb52dac7
(dev-v2.6-archive) Add NoExecute + NoSchedule toleration to PushProx
This commit adds NoExecute / NoSchedule tolerations by default to all of the
PushProx exporters since the default expectation when deploying these exporters
is that they are deployed on the expected nodes based on nodeSelector labels
regardless of any taints added to those nodes.

Users can always choose to override these settings if necessary.

(partially cherry picked from commit 215cf10a68)
2022-01-06 11:32:29 -08:00
Arvind Iyengar bf8675697f
(dev-v2.6-archive) Increase prometheus resource limits and requests
(partially cherry picked from commit de6fbbb129)
2022-01-06 11:32:29 -08:00
Arvind Iyengar 54f6d00110
(dev-v2.6-archive) Move ClusterRoles and change values.yaml fields
- Moves `monitoringRole` settings into `global.rbac` in values.yaml
- Moves user ClusterRoles into one file: `rancher-monitoring/clusterroles.yaml`
- Reformats user ClusterRoles format to look like upstream format
- Enables aggregateRolesForRBAC by default
- Updates README.md and CHANGELOG.md for relevant ClusterRole changes

(partially cherry picked from commit 3d6b8c94c7)
2022-01-06 11:32:28 -08:00
Arvind Iyengar 74439b3f23
(dev-v2.6-archive) Update default namespace to cattle-monitoring-system
(partially cherry picked from commit 701098fd72)
2022-01-06 11:32:27 -08:00
Arvind Iyengar 67f6d928ab
(dev-v2.6-archive) Update README to add rancher-monitoring changes
Adds prometheus-adapter and rancher-pushprox to the README.md and also
adds fields for Rancher Monitoring config

(partially cherry picked from commit 63647c6849)
2022-01-06 11:32:27 -08:00
Steven Crespo 071fc996e0
(dev-v2.6-archive) Update namespace annotation
- Update namespace annotation to `cattle-gatekeeper-system`
- Remove `gatekeeper-system` from templates as Rancher handles
namespaces for chart installation.

(partially cherry picked from commit 6e147640be)
2022-01-06 11:32:14 -08:00
Jacob Payne 16b52cb135
(dev-v2.6-archive) added kafka, splunk, syslog output support
(partially cherry picked from commit 75d396906a)
2022-01-06 11:32:14 -08:00
Arvind Iyengar 014be77b77
(dev-v2.6-archive) Remove CRD code from upstream
Removes the code that supports the Helm 2 hack for crd/ (`prometheus-operator/cleanup-crds.yaml` and
`prometheus-operator/crds.yaml`) and removes crd-install hooks from crds.

Also updates the README.md and CHANGELOG.md accordingly.

(partially cherry picked from commit 921f735cbc)
2022-01-06 11:32:12 -08:00
Brenda Rearden db4a2dd1e3
(dev-v2.6-archive) Update version to 1.6.7
(partially cherry picked from commit b0a79ea343)
2022-01-06 11:32:12 -08:00
Arvind Iyengar bdb8f7d3bf
(dev-v2.6-archive) Enable splitting CRDs to separate package
This commit adds script changes to automatically allow packages to split
the CRD components located in a crd/ directory into a separate package.

It also automatically adds in a validation yaml helper to the main package
to prevent a user from installing the base package without installing the crd
install package first.

Any package can enable the creation of a separate crd package by just adding
`splitCRDsIntoSeparatePackage: true` into the package.yaml, as shown in the
rancher-monitoring chart.

(partially cherry picked from commit fcc8528186)
2022-01-06 11:32:11 -08:00
Caleb Bron f893fe12c3
(dev-v2.6-archive) moving dev-charts to charts and fixing logo path
(partially cherry picked from commit a224a87038)
2022-01-06 11:32:10 -08:00
Caleb Bron 35c812165a
(dev-v2.6-archive) copy charts from dev-charts
(partially cherry picked from commit f7dd80a3c1)
2022-01-06 11:32:09 -08:00
Denise Schannon 3c2a851726
(dev-v2.6-archive) Initial commit
(partially cherry picked from commit 44e16849c3)
2022-01-06 11:32:09 -08:00
Caleb Bron 2087de28b5 clean up main 2020-09-30 16:45:24 -07:00
Arvind Iyengar e3d6033572 Support monitoring in hardened RKE clusters
This commit adds support for deploying rancher-monitoring into hardened clusters.

It modifies some of the default securityContexts and does some misc. fixes such as:
- Removing default AppArmor PSP annotations from Grafana (related to https://github.com/helm/charts/issues/9090)
- Modifying rkeScheduler and rkeControllerManager to use localhost to scrape components since the endpoints aren't exposed in a hardened cluster

These changes have been verified on a hardened RKE cluster.
2020-09-21 12:04:07 -07:00
Arvind Iyengar b80fb3a8ff Use separate namespace only for dashboards
This commit renames `grafana-dashboards` to `cattle-dashboards` and deprecates the `grafana-datasources` namespace in favor of the normal release namespace.

Related Issue: rancher/rancher#28887
2020-09-19 19:23:35 -07:00
Arvind Iyengar 0fa3a06de0 Split RBAC for ConfigMaps and Secrets
Related Issue: https://github.com/rancher/rancher/issues/29013
2020-09-19 19:23:33 -07:00
Arvind Iyengar 2e1ed1b130 Relocate Rancher roles to overlay/ 2020-09-19 19:00:23 -07:00
Arvind Iyengar 95cf887f5f Add annotations that were left out on rebase
Dropped on accident in rebase https://github.com/rancher/charts/pull/641/files#diff-ed5b5b87cf149adc6a6408bf81993efdR681-R682
2020-09-18 17:08:11 -07:00
Arvind Iyengar 700975ee95 Create kube-dns service monitor in kube-system
This is required since, by default, we ignoreNamespaceSelectors.
2020-09-18 15:35:21 -07:00
Arvind Iyengar c263e58157 Replace rancher/busybox w/ rancher/library-busybox
Related Issue: https://github.com/rancher/rancher/issues/28978
2020-09-17 18:38:14 -07:00
Arvind Iyengar 178528b12c Rebase to new upstream at kube-prometheus-stack
The old upstream at https://github.com/helm/charts/tree/master/stable/prometheus-operator has been deprecated in favor of the chart at https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack.

This commit modifies the rancher-monitoring patch in order to rebase to this new upstream, so it contains a ton of different changes to the patch file.

Related Issue: rancher/rancher#28822
2020-09-17 17:10:42 -07:00
Arvind Iyengar d03ffe81df Create Alertmanager secret in pre-install hook 2020-09-14 16:22:16 -07:00
Arvind Iyengar 4d5653b2ec Update docs, descriptions, and other minor fixes
- [rancher-pushprox] add hidden annotation + update description
- [rancher-monitoring] update description + add monitoring app-README.md
- [rancher-monitoring|rancher-pushprox] Move systemDefaultRegistry to global.cattle
- [rancher-monitoring] Move exporter enabled logic to _helpers.tpl
2020-09-10 17:23:47 -07:00
Arvind Iyengar 9fe6ed19c1 Use assumeOwnershipOfCRDs for rancher-monitoring 2020-09-09 15:25:13 -07:00
Brenda Rearden da849a2dee Add providesGVR to patch file and remove from package.yaml 2020-09-09 12:52:34 -07:00
Caleb Bron f223cb6b6d Make monitoring gvr singular 2020-09-08 22:13:09 -07:00
Brenda Rearden aa13a90e13 Update provides/requires gvr, added keywords 2020-09-08 21:12:11 -07:00
Arvind Iyengar 30aa33a5b1 Use Rancher mirror for jettech/kube-webhook-certgen 2020-09-08 13:41:17 -07:00
Caleb Bron 92211af12a update how we manage dependency annotations 2020-09-04 20:46:44 -07:00
Arvind Iyengar 1b0deff7a9 Use Rancher images for monitoring subcharts 2020-09-04 12:07:58 -07:00
Arvind Iyengar bd24317ee8 Add private registry to monitoring subcharts 2020-09-04 12:07:58 -07:00
Arvind Iyengar 43efb64f82 Use fixed versions for subcharts of rancher-monitoring 2020-09-04 12:07:58 -07:00
Arvind Iyengar 3b6f47638d fix typos in alerting config 2020-09-03 15:15:36 -07:00
Arvind Iyengar 6bc9f8c45f Update default Alerting template 2020-08-28 20:14:58 -07:00
Arvind Iyengar 267b8afc95 Rearrange patch
This commit is required due to patch flip-flops that will occur till https://github.com/rancher/rancher/issues/28627 is resolved.
2020-08-28 16:31:41 -07:00
Menna 7c63442e79 add rke2proxy toleration 2020-08-27 00:49:54 +02:00
Menna e5dfdc5c88 Adds support for monitoring the following k8s components in rke2 clusters:
- `rke2-scheduler`
- `rke2-controller-manager`
- `rke2-proxy`
- `rke2-etcd`

All exporters are created from the cattle-pushprox chart. This commit
also modifies the relevant Grafana Dashboard ConfigMaps and
PrometheusRules to deploy if the PushProx exporters are enabled.

See changes to `overlay/CHANGELOG.md` for details on what has been added/modified.
2020-08-26 22:16:37 +02:00
Arvind Iyengar e0d3e6519b Use Rancher images for rancher-monitoring 2020-08-25 19:37:34 -07:00
Arvind Iyengar aa30c498ea Add private registry support to rancher-monitoring 2020-08-25 19:37:34 -07:00
Arvind Iyengar d085bc088f Add alerting support to rancher-monitoring 2020-08-25 12:06:39 -07:00
Arvind Iyengar d2bf307e59 Change default to all CRs in all namespaces
This commit sets the following field to false:
`<serviceMonitor|podMonitor|rule>SelectorNilUsesHelmValues: true`

As a result, we look for all CRs with any labels in all namespaces rather than just
the ones tagged with `release: rancher-monitoring`.
2020-08-18 10:35:27 -07:00
Arvind Iyengar f3aebdca14 Update grafana default deploymentStrategy
If the Grafana deployment strategy is not Recreate, the deployment will
be stuck during an upgrade when PV is attached.
2020-08-18 10:35:27 -07:00
Arvind Iyengar 215cf10a68 Add NoExecute + NoSchedule toleration to PushProx
This commit adds NoExecute / NoSchedule tolerations by default to all of the
PushProx exporters since the default expectation when deploying these exporters
is that they are deployed on the expected nodes based on nodeSelector labels
regardless of any taints added to those nodes.

Users can always choose to override these settings if necessary.
2020-08-18 10:35:27 -07:00
Arvind Iyengar de6fbbb129 Increase prometheus resource limits and requests 2020-08-18 10:35:23 -07:00
Arvind Iyengar 3d6b8c94c7 Move ClusterRoles and change values.yaml fields
- Moves `monitoringRole` settings into `global.rbac` in values.yaml
- Moves user ClusterRoles into one file: `rancher-monitoring/clusterroles.yaml`
- Reformats user ClusterRoles format to look like upstream format
- Enables aggregateRolesForRBAC by default
- Updates README.md and CHANGELOG.md for relevant ClusterRole changes
2020-08-18 10:02:30 -07:00
Arvind Iyengar 701098fd72 Update default namespace to cattle-monitoring-system 2020-08-18 10:02:28 -07:00
Arvind Iyengar 63647c6849 Update README to add rancher-monitoring changes
Adds prometheus-adapter and rancher-pushprox to the README.md and also
adds fields for Rancher Monitoring config
2020-08-18 09:58:43 -07:00
Arvind Iyengar 921f735cbc Remove CRD code from upstream
Removes the code that supports the Helm 2 hack for crd/ (`prometheus-operator/cleanup-crds.yaml` and
`prometheus-operator/crds.yaml`) and removes crd-install hooks from crds.

Also updates the README.md and CHANGELOG.md accordingly.
2020-08-05 10:33:38 -07:00
Arvind Iyengar fcc8528186 Enable splitting CRDs to separate package
This commit adds script changes to automatically allow packages to split
the CRD components located in a crd/ directory into a separate package.

It also automatically adds in a validation yaml helper to the main package
to prevent a user from installing the base package without installing the crd
install package first.

Any package can enable the creation of a separate crd package by just adding
`splitCRDsIntoSeparatePackage: true` into the package.yaml, as shown in the
rancher-monitoring chart.
2020-08-04 10:40:45 -07:00
Caleb Bron a224a87038 moving dev-charts to charts and fixing logo path 2020-07-30 16:13:01 -07:00
Caleb Bron f7dd80a3c1 copy charts from dev-charts 2020-07-30 16:09:43 -07:00
Denise Schannon 44e16849c3 Initial commit 2020-07-29 15:59:02 -07:00