UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • big-bang/product/packages/thanos
1 result
Show changes
Commits on Source (1)
......@@ -2,6 +2,12 @@
---
## [15.7.27-bb.1] - 2024-10-11
### Added
- Added pre-upgrade hook to automate upgrade process
## [15.7.27-bb.0] - 2024-10-03
### Upgraded
......
<!-- Warning: Do not manually edit this file. See notes on gluon + helm-docs at the end of this file for more information. -->
# thanos
![Version: 15.7.27-bb.0](https://img.shields.io/badge/Version-15.7.27--bb.0-informational?style=flat-square) ![AppVersion: v0.36.1](https://img.shields.io/badge/AppVersion-v0.36.1-informational?style=flat-square)
![Version: 15.7.27-bb.1](https://img.shields.io/badge/Version-15.7.27--bb.1-informational?style=flat-square) ![AppVersion: v0.36.1](https://img.shields.io/badge/AppVersion-v0.36.1-informational?style=flat-square)
Thanos is a highly available metrics system that can be added on top of existing Prometheus deployments, providing a global query view across all Prometheus installations.
......@@ -1221,7 +1221,7 @@ helm install thanos chart/
| volumePermissions.image.pullPolicy | string | `"IfNotPresent"` | |
| volumePermissions.image.pullSecrets | list | `[]` | |
| minio.enabled | bool | `false` | |
| minio.secrets | object | `{"accessKey":"minio","name":"thanos-objstore-creds","secretKey":"minio123"}` | Minio root credentials |
| minio.tenant.configSecret | object | `{"accessKey":"minio","name":"thanos-objstore-creds","secretKey":"minio123"}` | Minio root credentials |
| minio.tenant.buckets | list | `[{"name":"thanos"}]` | Buckets to be provisioned to for tenant |
| minio.tenant.users | list | `[{"name":"minio-user"}]` | Users to to be provisioned to for tenant |
| minio.tenant.defaultUserCredentials | object | `{"password":"","username":"minio-user"}` | User credentials to create for above user. Otherwise password is randomly generated. This auth is not required to be set or reclaimed for minio use with Loki |
......
......@@ -41,4 +41,4 @@ maintainers:
name: thanos
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/thanos
version: 15.7.27-bb.0
version: 15.7.27-bb.1
{{- if .Values.upgradeJob.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: upgrade-job-svc-account
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "-10"
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed,before-hook-creation
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: upgrade-role
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "-10"
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed,before-hook-creation
rules:
- apiGroups: [""]
resources: ["statefulsets"]
verbs: ["get", "list", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: upgrade-rolebinding
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "-10"
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed,before-hook-creation
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: upgrade-role
subjects:
- kind: ServiceAccount
name: upgrade-job-svc-account
namespace: {{ .Release.Namespace }}
---
apiVersion: batch/v1
kind: Job
metadata:
name: thanos-upgrade-job
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "0"
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed,before-hook-creation
spec:
template:
metadata:
spec:
{{- with .Values.server.imagePullSecrets | default .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: upgrade-job-svc-account
containers:
- name: thanos-upgrade-job
image: {{ .Values.upgradeJob.image.repository }}:{{ .Values.upgradeJob.image.tag }}
imagePullPolicy: {{ .Values.upgradeJob.image.imagePullPolicy }}
command:
- "/bin/bash"
- "-c"
- |
kubectl delete statefulset {{ .Release.Namespace }}-storegateway -n {{ .Release.Namespace }}
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 100m
memory: 256Mi
securityContext:
capabilities:
drop: ["ALL"]
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
restartPolicy: Never
{{- end }}