TrueChartsClone/charts/incubator/teslamate/values.yaml

85 lines
2.2 KiB
YAML
Raw Normal View History

feat(teslamate) Add teslamate (#20123) **Description** Add teslamate **⚙️ Type of change** - [X] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [X] ⚖️ My code follows the style guidelines of this project - [X] 👀 I have performed a self-review of my own code - [x] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [x] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning - [X] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [X] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._
2024-04-13 06:34:04 -04:00
image:
repository: teslamate/teslamate
pullPolicy: IfNotPresent
tag: 1.28.5@sha256:aa3f37ecccc7ea77fa1e259391c8f2a05533e208228a42ebb4dbe560828db057
securityContext:
container:
readOnlyRootFilesystem: false
service:
main:
ports:
main:
protocol: http
port: 4000
workload:
main:
replicas: 1
strategy: RollingUpdate
podSpec:
containers:
main:
env:
ENCRYPTION_KEY:
secretKeyRef:
name: teslamate-secrets
key: TESLAMATE_ENCRYPTION_KEY
DATABASE_USER: "{{ .Values.cnpg.main.user }}"
DATABASE_PASS:
secretKeyRef:
name: cnpg-main-user
key: password
DATABASE_NAME: "{{ .Values.cnpg.main.database }}"
DATABASE_HOST:
secretKeyRef:
name: cnpg-main-urls
key: host
DISABLE_MQTT: true
MQTT_HOST: ""
MQTT_PORT: 1883
MQTT_USERNAME: ""
MQTT_PASSWORD: ""
configmap:
datasource:
enabled: true
labels:
grafana_datasources: "1"
data:
datasourceteslamatepsql.yaml: |-
apiVersion: 1
datasources:
- name: TeslaMate
type: postgres
uid: TeslaMate
url: {{ printf "%s.%s:5432" (.Values.cnpg.main.creds.host | trimAll "\"") .Release.Namespace }}
access: proxy
user: {{ .Values.cnpg.main.user }}
secureJsonData:
password: {{ .Values.cnpg.main.creds.password | default "na" }}
jsonData:
database: {{ .Values.cnpg.main.database }}
sslmode: 'disable' # disable/require/verify-ca/verify-full
maxOpenConns: 100 # Grafana v5.4+
maxIdleConns: 100 # Grafana v5.4+
maxIdleConnsAuto: true # Grafana v9.5.1+
connMaxLifetime: 14400 # Grafana v5.4+
postgresVersion: 1500 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10
timescaledb: false
portal:
open:
enabled: true
cnpg:
main:
enabled: true
user: teslamate
database: teslamate
cluster:
initdb:
postInitApplicationSQL:
- ALTER USER teslamate WITH SUPERUSER