Comments (6)
@onedr0p is there a reason you don't want to create your own secret for your use case? I can support using an object with toYaml
in addition to the string but I wont support tpl
on an object as this is bad practice, something like below.
{{- if .Values.objstoreConfig.create -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "thanos.objstoreConfigSecretName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "thanos.labels" . | nindent 4 }}
data:
{{ .Values.objstoreConfig.key }}: |-
{{- with .Values.objstoreConfig.value }}
{{- if kindIs "string" . }}
{{- tpl . $ | b64enc | nindent 4 }}
{{- else }}
{{- toYaml . | b64enc | nindent 4 }}
{{- end }}
{{- end }}
{{- end -}}
from helm-charts.
Hi @stevehipwell you can see my deployment with the Bitnami chart here using Flux HelmRelease
https://github.com/onedr0p/home-ops/blob/main/kubernetes/apps/monitoring/thanos/app/helmrelease.yaml
Essentially I use Ceph's Bucket CR to create a bucket like this:
apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
name: thanos-bucket-v1
namespace: monitoring
spec:
bucketName: thanos-v1
storageClassName: ceph-bucket
This automatically generates a secret and configmap with the credentials and endpoint for the bucket. It would be nice to auto-populate the helm values using the Flux HelmRelease
and valuesFrom
:
valuesFrom:
- targetPath: objstoreConfig.config.bucket
kind: ConfigMap
name: thanos-bucket-v1
valuesKey: BUCKET_NAME
- targetPath: objstoreConfig.config.endpoint
kind: ConfigMap
name: thanos-bucket-v1
valuesKey: BUCKET_HOST
- targetPath: objstoreConfig.config.region
kind: ConfigMap
name: thanos-bucket-v1
valuesKey: BUCKET_REGION
- targetPath: objstoreConfig.config.access_key
kind: Secret
name: thanos-bucket-v1
valuesKey: AWS_ACCESS_KEY_ID
- targetPath: objstoreConfig.config.secret_key
kind: Secret
name: thanos-bucket-v1
I believe what you have there will work unless what I mentioned changes things.
from helm-charts.
Is valuesFrom
a HelmRelease
construct then?
from helm-charts.
Correct https://fluxcd.io/flux/components/helm/helmreleases/#values-overrides
from helm-charts.
In which case I'll add support in the next chart release (likely tomorrow).
from helm-charts.
Much appreciated, can't wait to try it out!
from helm-charts.
Related Issues (20)
- [nexus3] Allow user credentials specified by kubernetes secret HOT 11
- FR: thoughts about adding tar to the nexus container HOT 2
- Update PlantUML PodDisruptionBudget API HOT 1
- Problem using rootPassword and persistence HOT 5
- [thanos] Unable to update to 1.13.0 - YAML parsing error HOT 3
- [Thanos] StatefulSet PVC Retention Policy HOT 1
- Aggregator Not Sending Logs to outputs After Running for a Few Hours HOT 6
- bug(confluence-server): No template "postgresql.primary.fullname" HOT 2
- More info regarding blob store configuration for Nexus HOT 4
- Allow overriding repository for init containers in Nexus helm chart HOT 2
- [thanos] How to implement authentication HOT 3
- Would you add `resources.extra` field so that I can add my gpu value into the resource? HOT 1
- [Nexus3] Deployment doesn't scale more than one HOT 7
- [nexus] Ldap password escaping \ breaks other passwords that have sed special characters (&) HOT 3
- [thanos] support prometheus sidecar method of deployment HOT 2
- [nexus3] Setting rootPassword.key has no effect HOT 2
- thanos-recever-router ingress creation issue HOT 1
- [nexus3] Question: Requirement for groovy script files in helm chart? HOT 2
- Missing Permissions for ippools in tigera-operator ClusterRole v2.10.0
- softQuota option in blobStore chart section HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.