Comments (4)
I just released paperless-4.2.0
which should allow you to specify the values directly via the env
block and valueFrom
as mentioned above. 📦
from helm-charts.
I just released
paperless-4.2.0
which should allow you to specify the values directly via theenv
block andvalueFrom
as mentioned above. 📦
Thanks, I just tested and it works flawlessly!
from helm-charts.
Hmmm, leaving secret.create
set to false, but adding keys to the secret.values
part actually adds the necessary parts:
values.yaml
secret:
existingSecret: 'paperless-admin'
values:
PAPERLESS_ADMIN_USER:
PAPERLESS_ADMIN_PASSWORD:
PAPERLESS_ADMIN_MAIL:
PAPERLESS_URL:
Resulting deployment
spec:
serviceAccountName: default
containers:
- name: paperless
image: "ghcr.io/paperless-ngx/paperless-ngx:1.14.5"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8000
protocol: "TCP"
env:
- name: "TZ"
value: "UTC"
- name: PAPERLESS_TIME_ZONE
value: "UTC"
- name: PAPERLESS_CONSUMPTION_DIR
value: /consumption
- name: PAPERLESS_REDIS
value: redis://paperless-redis:6379
- name: PAPERLESS_ADMIN_MAIL
valueFrom:
secretKeyRef:
name: paperless-admin
key: PAPERLESS_ADMIN_MAIL
- name: PAPERLESS_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: paperless-admin
key: PAPERLESS_ADMIN_PASSWORD
- name: PAPERLESS_ADMIN_USER
valueFrom:
secretKeyRef:
name: paperless-admin
key: PAPERLESS_ADMIN_USER
- name: PAPERLESS_SECRET_KEY
valueFrom:
secretKeyRef:
name: paperless-admin
key: PAPERLESS_SECRET_KEY
- name: PAPERLESS_URL
valueFrom:
secretKeyRef:
name: paperless-admin
key: PAPERLESS_URL
- name: PAPERLESS_PORT
value: "8000"
volumeMounts:
Not sure if that is intended behaviour. At least I would not have guessed it from the description...
from helm-charts.
Hi @ojkastl,
Hmmm, leaving
secret.create
set to false, but adding keys to thesecret.values
part actually adds the necessary parts:values.yaml
secret: existingSecret: 'paperless-admin' values: PAPERLESS_ADMIN_USER: PAPERLESS_ADMIN_PASSWORD: PAPERLESS_ADMIN_MAIL: PAPERLESS_URL:
Resulting deployment
spec: serviceAccountName: default containers: - name: paperless image: "ghcr.io/paperless-ngx/paperless-ngx:1.14.5" imagePullPolicy: IfNotPresent ports: - name: http containerPort: 8000 protocol: "TCP" env: - name: "TZ" value: "UTC" - name: PAPERLESS_TIME_ZONE value: "UTC" - name: PAPERLESS_CONSUMPTION_DIR value: /consumption - name: PAPERLESS_REDIS value: redis://paperless-redis:6379 - name: PAPERLESS_ADMIN_MAIL valueFrom: secretKeyRef: name: paperless-admin key: PAPERLESS_ADMIN_MAIL - name: PAPERLESS_ADMIN_PASSWORD valueFrom: secretKeyRef: name: paperless-admin key: PAPERLESS_ADMIN_PASSWORD - name: PAPERLESS_ADMIN_USER valueFrom: secretKeyRef: name: paperless-admin key: PAPERLESS_ADMIN_USER - name: PAPERLESS_SECRET_KEY valueFrom: secretKeyRef: name: paperless-admin key: PAPERLESS_SECRET_KEY - name: PAPERLESS_URL valueFrom: secretKeyRef: name: paperless-admin key: PAPERLESS_URL - name: PAPERLESS_PORT value: "8000" volumeMounts:
Not sure if that is intended behaviour. At least I would not have guessed it from the description...
As you mentioned already it is required to add the keys from your existing secret also to the values block. Also the keys should have non-empty values associated to be rendered.
I agree that this is neither very convenient nor documented very well but I haven't found a good way to explicitly whitelist env vars from an existing secret without injecting them all.
If you have a better idea feel free to show me and/or create a PR for it! 😊
At least I will try to improve the related documentation/comments in the next few days.
Addittionaly, I will add the possibility to specify a value from a secret within the env
block:
env:
- name: PAPERLESS_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: my-paperless-secret
key: PAPERLESS_ADMIN_PASSWORD
I hope this helps!
BR, Pascal
from helm-charts.
Related Issues (20)
- [feat] Use abstract controller for `unbound`
- [feat] Use abstract controller for `traefik-errors`
- [feat] Use abstract controller for `snapdrop`
- [feat] Use abstract controller for `paperless`
- [feat] Use abstract controller for `linkding`
- [feat] Use abstract controller for `homer`
- [feat] Use abstract controller for `gitlab`
- [feat] Use abstract controller for `fritzbox-exporter`
- [feat] Use abstract controller for `code-server`
- [feat] Use abstract controller for `cloudflared`
- [feat] Generate values.schema.json for charts
- [feat] Implement ClickHouse Chart
- [feat] Use PersistentVolumeClaims or Kubernetes volumes for consumption, export and trash directories of paperless-ngx HOT 2
- What are the default credentials for paperless-ngx? HOT 4
- [feat] Create/use a K8S secret for the admin credentials for paperless-ngx HOT 4
- [feat] Support MaxMinds GeoLite2 DB in Plausible Chart
- [bug] Set CI values for `plausible` chart
- [bug] Paperless-ngx chart is missing PAPERLESS_NGX ENV variable HOT 6
- linkding 1.0.5 Helm chart broke my deployment HOT 5
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.