Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit 0876c88

Browse files
authored
Merge pull request #1506 from kinvolk/surajssd/update-prom-operator
Update prometheus-operator charts to 0.48.1
2 parents 28bbba9 + 97ae198 commit 0876c88

File tree

161 files changed

+5747
-17288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+5747
-17288
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
dependencies:
22
- name: kube-state-metrics
3-
repository: https://kubernetes.github.io/kube-state-metrics
4-
version: 2.13.0
3+
repository: https://prometheus-community.github.io/helm-charts
4+
version: 3.1.1
55
- name: prometheus-node-exporter
66
repository: https://prometheus-community.github.io/helm-charts
7-
version: 1.16.2
7+
version: 1.18.1
88
- name: grafana
99
repository: https://grafana.github.io/helm-charts
10-
version: 6.6.3
11-
digest: sha256:52acbef377da70248ae3fa926dc7f6601df9022b1b1e17224a8fe99e6995d3af
12-
generated: "2021-03-19T17:50:36.8566658+01:00"
10+
version: 6.13.1
11+
digest: sha256:10166e3383b9d69d03c37bf90b652d30cddf18c118e2fbcbee4396b2ef3eec3f
12+
generated: "2021-06-18T06:45:25.153026161-04:00"

assets/charts/components/prometheus-operator/Chart.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,24 @@ annotations:
66
url: https://github.com/prometheus-operator/kube-prometheus
77
artifacthub.io/operator: "true"
88
apiVersion: v2
9-
appVersion: 0.46.0
9+
appVersion: 0.48.1
1010
dependencies:
1111
- condition: kubeStateMetrics.enabled
1212
name: kube-state-metrics
13-
repository: https://kubernetes.github.io/kube-state-metrics
14-
version: 2.13.*
13+
repository: https://prometheus-community.github.io/helm-charts
14+
version: 3.1.*
1515
- condition: nodeExporter.enabled
1616
name: prometheus-node-exporter
1717
repository: https://prometheus-community.github.io/helm-charts
18-
version: 1.16.*
18+
version: 1.18.*
1919
- condition: grafana.enabled
2020
name: grafana
2121
repository: https://grafana.github.io/helm-charts
22-
version: 6.6.*
23-
description: kube-prometheus-stack collects Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator.
22+
version: 6.13.*
23+
description: kube-prometheus-stack collects Kubernetes manifests, Grafana dashboards,
24+
and Prometheus rules combined with documentation and scripts to provide easy to
25+
operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus
26+
Operator.
2427
home: https://github.com/prometheus-operator/kube-prometheus
2528
icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png
2629
keywords:
@@ -44,4 +47,4 @@ sources:
4447
- https://github.com/prometheus-community/helm-charts
4548
- https://github.com/prometheus-operator/kube-prometheus
4649
type: application
47-
version: 14.3.0
50+
version: 16.9.2

assets/charts/components/prometheus-operator/README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _See [helm install](https://helm.sh/docs/helm/helm_install/) for command documen
3535

3636
By default this chart installs additional, dependent charts:
3737

38-
- [kubernetes/kube-state-metrics](https://github.com/kubernetes/kube-state-metrics/tree/master/charts/kube-state-metrics)
38+
- [prometheus-community/kube-state-metrics](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-state-metrics)
3939
- [prometheus-community/prometheus-node-exporter](https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-node-exporter)
4040
- [grafana/grafana](https://github.com/grafana/helm-charts/tree/main/charts/grafana)
4141

@@ -83,6 +83,22 @@ _See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documen
8383

8484
A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions.
8585

86+
### From 15.x to 16.x
87+
Version 16 upgrades kube-state-metrics to v2.0.0. This includes changed command-line arguments and removed metrics, see this [blog post](https://kubernetes.io/blog/2021/04/13/kube-state-metrics-v-2-0/). This version also removes Grafana dashboards that supported Kubernetes 1.14 or earlier.
88+
89+
### From 14.x to 15.x
90+
Version 15 upgrades prometheus-operator from 0.46.x to 0.47.x. Helm does not automatically upgrade or install new CRDs on a chart upgrade, so you have to install the CRDs manually before updating:
91+
92+
```console
93+
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagerconfigs.yaml
94+
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
95+
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml
96+
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_probes.yaml
97+
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
98+
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
99+
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml
100+
```
101+
86102
### From 13.x to 14.x
87103

88104
Version 14 upgrades prometheus-operator from 0.45.x to 0.46.x. Helm does not automatically upgrade or install new CRDs on a chart upgrade, so you have to install the CRDs manually before updating:
@@ -109,6 +125,12 @@ kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheu
109125

110126
### From 11.x to 12.x
111127

128+
Version 12 upgrades prometheus-operator from 0.43.x to 0.44.x. Helm does not automatically upgrade or install new CRDs on a chart upgrade, so you have to install the CRD manually before updating:
129+
130+
```console
131+
kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/release-0.44/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
132+
```
133+
112134
The chart was migrated to support only helm v3 and later.
113135

114136
### From 10.x to 11.x
@@ -373,7 +395,7 @@ apiVersion: v1
373395
kind: PersistentVolumeClaim
374396
metadata:
375397
labels:
376-
app: prometheus
398+
app.kubernetes.io/name: prometheus
377399
prometheus: prometheus-migration-prometheus
378400
name: prometheus-prometheus-migration-prometheus-db-prometheus-prometheus-migration-prometheus-0
379401
namespace: monitoring

assets/charts/components/prometheus-operator/charts/grafana/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: 7.4.3
2+
appVersion: 8.0.2
33
description: The leading tool for querying and visualizing time series and metrics.
44
home: https://grafana.net
55
icon: https://raw.githubusercontent.com/grafana/grafana/master/public/img/logo_transparent_400x.png
@@ -19,4 +19,4 @@ name: grafana
1919
sources:
2020
- https://github.com/grafana/grafana
2121
type: application
22-
version: 6.6.3
22+
version: 6.13.1

assets/charts/components/prometheus-operator/charts/grafana/README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ This version requires Helm >= 3.1.0.
5959
| `securityContext` | Deployment securityContext | `{"runAsUser": 472, "runAsGroup": 472, "fsGroup": 472}` |
6060
| `priorityClassName` | Name of Priority Class to assign pods | `nil` |
6161
| `image.repository` | Image repository | `grafana/grafana` |
62-
| `image.tag` | Image tag (`Must be >= 5.0.0`) | `7.4.3` |
63-
| `image.sha` | Image sha (optional) | `16dc29783ec7d4a23fa19207507586344c6797023604347eb3e8ea5ae431e181` |
62+
| `image.tag` | Image tag (`Must be >= 5.0.0`) | `8.0.2` |
63+
| `image.sha` | Image sha (optional) | `80c6d6ac633ba5ab3f722976fb1d9a138f87ca6a9934fcd26a5fc28cbde7dbfa` |
6464
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
6565
| `image.pullSecrets` | Image pull secrets | `{}` |
66+
| `service.enabled` | Enable grafana service | `true` |
6667
| `service.type` | Kubernetes service type | `ClusterIP` |
6768
| `service.port` | Kubernetes port where service is exposed | `80` |
6869
| `service.portName` | Name of the port on the service | `service` |
@@ -82,7 +83,7 @@ This version requires Helm >= 3.1.0.
8283
| `ingress.path` | Ingress accepted path | `/` |
8384
| `ingress.pathType` | Ingress type of path | `Prefix` |
8485
| `ingress.hosts` | Ingress accepted hostnames | `["chart-example.local"]` |
85-
| `ingress.extraPaths` | Ingress extra paths to prepend to every host configuration. Useful when configuring [custom actions with AWS ALB Ingress Controller](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/ingress/annotation/#actions). | `[]` |
86+
| `ingress.extraPaths` | Ingress extra paths to prepend to every host configuration. Useful when configuring [custom actions with AWS ALB Ingress Controller](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/ingress/annotation/#actions). Requires `ingress.hosts` to have one or more host entries. | `[]` |
8687
| `ingress.tls` | Ingress TLS configuration | `[]` |
8788
| `resources` | CPU/Memory resource requests/limits | `{}` |
8889
| `nodeSelector` | Node labels for pod assignment | `{}` |
@@ -135,7 +136,7 @@ This version requires Helm >= 3.1.0.
135136
| `podLabels` | Pod labels | `{}` |
136137
| `podPortName` | Name of the grafana port on the pod | `grafana` |
137138
| `sidecar.image.repository` | Sidecar image repository | `quay.io/kiwigrid/k8s-sidecar` |
138-
| `sidecar.image.tag` | Sidecar image tag | `1.10.7` |
139+
| `sidecar.image.tag` | Sidecar image tag | `1.12.2` |
139140
| `sidecar.image.sha` | Sidecar image sha (optional) | `""` |
140141
| `sidecar.imagePullPolicy` | Sidecar image pull policy | `IfNotPresent` |
141142
| `sidecar.resources` | Sidecar resources | `{}` |
@@ -157,13 +158,16 @@ This version requires Helm >= 3.1.0.
157158
| `sidecar.dashboards.folderAnnotation` | The annotation the sidecar will look for in configmaps to override the destination folder for files | `nil` |
158159
| `sidecar.dashboards.defaultFolderName` | The default folder name, it will create a subfolder under the `sidecar.dashboards.folder` and put dashboards in there instead | `nil` |
159160
| `sidecar.dashboards.searchNamespace` | If specified, the sidecar will search for dashboard config-maps inside this namespace. Otherwise the namespace in which the sidecar is running will be used. It's also possible to specify ALL to search in all namespaces | `nil` |
161+
| `sidecar.dashboards.resource` | Should the sidecar looks into secrets, configmaps or both. | `both` |
160162
| `sidecar.datasources.enabled` | Enables the cluster wide search for datasources and adds/updates/deletes them in grafana |`false` |
161163
| `sidecar.datasources.label` | Label that config maps with datasources should have to be added | `grafana_datasource` |
162-
| `sidecar.datasources.labelValue` | Label value that config maps with datasources should have to be added | `nil` |
164+
| `sidecar.datasources.labelValue` | Label value that config maps with datasources should have to be added | `nil` |
163165
| `sidecar.datasources.searchNamespace` | If specified, the sidecar will search for datasources config-maps inside this namespace. Otherwise the namespace in which the sidecar is running will be used. It's also possible to specify ALL to search in all namespaces | `nil` |
166+
| `sidecar.datasources.resource` | Should the sidecar looks into secrets, configmaps or both. | `both` |
164167
| `sidecar.notifiers.enabled` | Enables the cluster wide search for notifiers and adds/updates/deletes them in grafana | `false` |
165168
| `sidecar.notifiers.label` | Label that config maps with notifiers should have to be added | `grafana_notifier` |
166169
| `sidecar.notifiers.searchNamespace` | If specified, the sidecar will search for notifiers config-maps (or secrets) inside this namespace. Otherwise the namespace in which the sidecar is running will be used. It's also possible to specify ALL to search in all namespaces | `nil` |
170+
| `sidecar.notifiers.resource` | Should the sidecar looks into secrets, configmaps or both. | `both` |
167171
| `smtp.existingSecret` | The name of an existing secret containing the SMTP credentials. | `""` |
168172
| `smtp.userKey` | The key in the existing SMTP secret containing the username. | `"user"` |
169173
| `smtp.passwordKey` | The key in the existing SMTP secret containing the password. | `"password"` |
@@ -215,6 +219,7 @@ This version requires Helm >= 3.1.0.
215219
| `imageRenderer.securityContext` | image-renderer deployment securityContext | `{}` |
216220
| `imageRenderer.hostAliases` | image-renderer deployment Host Aliases | `[]` |
217221
| `imageRenderer.priorityClassName` | image-renderer deployment priority class | `''` |
222+
| `imageRenderer.service.enabled` | Enable the image-renderer service | `true` |
218223
| `imageRenderer.service.portName` | image-renderer service port name | `'http'` |
219224
| `imageRenderer.service.port` | image-renderer service port used by both service and deployment | `8081` |
220225
| `imageRenderer.grafanaSubPath` | Grafana sub path to use for image renderer callback url | `''` |
@@ -242,13 +247,20 @@ ingress:
242247
243248
### Example of extraVolumeMounts
244249
250+
Volume can be type persistentVolumeClaim or hostPath but not both at same time.
251+
If none existingClaim or hostPath argument is givent then type is emptyDir.
252+
245253
```yaml
246254
- extraVolumeMounts:
247255
- name: plugins
248256
mountPath: /var/lib/grafana/plugins
249257
subPath: configs/grafana/plugins
250258
existingClaim: existing-grafana-claim
251259
readOnly: false
260+
- name: dashboards
261+
mountPath: /var/lib/grafana/dashboards
262+
hostPath: /usr/shared/grafana/dashboards
263+
readOnly: false
252264
```
253265
254266
## Import dashboards

assets/charts/components/prometheus-operator/charts/grafana/templates/_helpers.tpl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,16 @@ Return the appropriate apiVersion for rbac.
114114
{{- print "rbac.authorization.k8s.io/v1beta1" -}}
115115
{{- end -}}
116116
{{- end -}}
117+
118+
{{/*
119+
Looks if there's an existing secret and reuse its password. If not it generates
120+
new password and use it.
121+
*/}}
122+
{{- define "grafana.password" -}}
123+
{{- $secret := (lookup "v1" "Secret" (include "grafana.namespace" .) (include "grafana.fullname" .) ) -}}
124+
{{- if $secret -}}
125+
{{- index $secret "data" "admin-password" -}}
126+
{{- else -}}
127+
{{- (randAlphaNum 40) | b64enc | quote -}}
128+
{{- end -}}
129+
{{- end -}}

0 commit comments

Comments
 (0)