Compare commits

...

3 Commits

Author SHA1 Message Date
nιcнolaѕ wιlde
671ff5362b Migrated to common library (#903)
Signed-off-by: Nicholas Wilde <ncwilde43@gmail.com>

Co-authored-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
2021-05-10 08:46:22 +02:00
nιcнolaѕ wιlde
4b52e9e01a - Updated icon url. (#904)
- Removed excess ingress items.

Signed-off-by: Nicholas Wilde <ncwilde43@gmail.com>
2021-05-10 08:25:01 +02:00
nιcнolaѕ wιlde
b6ce1780ee - Migrated to common library. (#900) 2021-05-09 10:06:52 +02:00
28 changed files with 247 additions and 620 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: intel-gpu-plugin
version: 1.2.3
version: 2.0.0
appVersion: 0.20.0
description: The Intel GPU plugin facilitates offloading the processing of computation intensive workloads to GPU hardware
keywords:
@@ -15,3 +15,7 @@ sources:
maintainers:
- name: billimek
email: jeff@billimek.com
dependencies:
- name: common
version: 2.5.0
repository: https://library-charts.k8s-at-home.com

View File

@@ -1,6 +1,6 @@
# intel-gpu-plugin
![Version: 1.2.3](https://img.shields.io/badge/Version-1.2.3-informational?style=flat-square) ![AppVersion: 0.20.0](https://img.shields.io/badge/AppVersion-0.20.0-informational?style=flat-square)
![Version: 2.0.0](https://img.shields.io/badge/Version-2.0.0-informational?style=flat-square) ![AppVersion: 0.20.0](https://img.shields.io/badge/AppVersion-0.20.0-informational?style=flat-square)
The Intel GPU plugin facilitates offloading the processing of computation intensive workloads to GPU hardware
@@ -16,6 +16,7 @@ The Intel GPU plugin facilitates offloading the processing of computation intens
| Repository | Name | Version |
|------------|------|---------|
| https://library-charts.k8s-at-home.com | common | 2.5.0 |
## TL;DR
@@ -86,24 +87,37 @@ affinity:
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.repository | string | `"intel/intel-gpu-plugin"` | Image repository |
| image.tag | string | `"0.20.0"` | Image tag. Possible values listed [here](https://hub.docker.com/r/intel/intel-gpu-plugin/tags) |
| imagePullSecrets | list | `[]` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | Key-value pairs to add as pod annotations |
| podSecurityContext | object | `{}` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
| serviceAccount.annotations | object | `{}` | |
| args[0] | string | `"-shared-dev-num"` | |
| args[1] | string | `"1"` | |
| controllerType | string | `"daemonset"` | |
| envValueFrom.NODE_NAME.fieldRef.fieldPath | string | `"spec.nodeName"` | |
| hostPathMounts[0].emptyDir | bool | `false` | |
| hostPathMounts[0].enabled | bool | `true` | |
| hostPathMounts[0].hostPath | string | `"/dev/dri"` | |
| hostPathMounts[0].mountPath | string | `"/dev/dri"` | |
| hostPathMounts[0].name | string | `"devfs"` | |
| hostPathMounts[0].readOnly | bool | `true` | |
| hostPathMounts[1].emptyDir | bool | `false` | |
| hostPathMounts[1].enabled | bool | `true` | |
| hostPathMounts[1].hostPath | string | `"/sys/class/drm"` | |
| hostPathMounts[1].mountPath | string | `"/sys/class/drm"` | |
| hostPathMounts[1].name | string | `"sysfs"` | |
| hostPathMounts[1].readOnly | bool | `true` | |
| hostPathMounts[2].emptyDir | bool | `false` | |
| hostPathMounts[2].enabled | bool | `true` | |
| hostPathMounts[2].hostPath | string | `"/var/lib/kubelet/device-plugins"` | |
| hostPathMounts[2].mountPath | string | `"/var/lib/kubelet/device-plugins"` | |
| hostPathMounts[2].name | string | `"kubeletsockets"` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"intel/intel-gpu-plugin"` | |
| image.tag | string | `"0.20.0"` | |
| ingress.enabled | bool | `false` | |
| probes.liveness.enabled | bool | `false` | |
| probes.readiness.enabled | bool | `false` | |
| probes.startup.enabled | bool | `false` | |
| service.enabled | bool | `false` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| sharedDeviceNumber | int | 1 | Number of containers sharing the same GPU device |
| strategyType | string | `"Recreate"` | Specifies the strategy used to replace old Pods by new ones |
| tolerations | list | `[]` | |
| strategy.type | string | `"Recreate"` | |
## Changelog
@@ -111,6 +125,20 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [2.0.0]
#### Added
- N/A
#### Changed
- **BREAKING** Migrate to the common library, a lot of configuration has changed.
#### Removed
- N/A
### [1.2.0]
#### Fixed
@@ -145,9 +173,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[1.2.0]: #1.2.0
[1.1.0]: #1.1.0
[1.0.1]: #1.0.1
[2.0.0]: #200
[1.2.0]: #120
[1.1.0]: #110
[1.0.1]: #101
## Support

View File

@@ -143,3 +143,4 @@ helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }} -
{{ template "custom.support" . }}
{{ template "helm-docs.versionFooter" . }}
{{ "" }}

View File

@@ -9,6 +9,20 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [2.0.0]
#### Added
- N/A
#### Changed
- **BREAKING** Migrate to the common library, a lot of configuration has changed.
#### Removed
- N/A
### [1.2.0]
#### Fixed
@@ -44,7 +58,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[1.2.0]: #1.2.0
[1.1.0]: #1.1.0
[1.0.1]: #1.0.1
[2.0.0]: #200
[1.2.0]: #120
[1.1.0]: #110
[1.0.1]: #101
{{- end -}}

View File

@@ -0,0 +1 @@
{{- include "common.notes.defaultNotes" . -}}

View File

@@ -1,62 +0,0 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "intel-gpu-plugin.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "intel-gpu-plugin.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "intel-gpu-plugin.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "intel-gpu-plugin.labels" -}}
helm.sh/chart: {{ include "intel-gpu-plugin.chart" . }}
{{ include "intel-gpu-plugin.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "intel-gpu-plugin.selectorLabels" -}}
app.kubernetes.io/name: {{ include "intel-gpu-plugin.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "intel-gpu-plugin.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "intel-gpu-plugin.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1 @@
{{ include "common.all" . }}

View File

@@ -1,74 +0,0 @@
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ include "intel-gpu-plugin.fullname" . }}
labels:
{{- include "intel-gpu-plugin.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "intel-gpu-plugin.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "intel-gpu-plugin.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "intel-gpu-plugin.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
args:
- -shared-dev-num
- {{ .Values.sharedDeviceNumber | quote }}
volumeMounts:
- name: devfs
mountPath: /dev/dri
readOnly: true
- name: sysfs
mountPath: /sys/class/drm
readOnly: true
- name: kubeletsockets
mountPath: /var/lib/kubelet/device-plugins
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: devfs
hostPath:
path: /dev/dri
- name: sysfs
hostPath:
path: /sys/class/drm
- name: kubeletsockets
hostPath:
path: /var/lib/kubelet/device-plugins
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@@ -1,12 +0,0 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "intel-gpu-plugin.serviceAccountName" . }}
labels:
{{- include "intel-gpu-plugin.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

View File

@@ -1,61 +1,61 @@
# Default values for intel-gpu-plugin.
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
#
image:
# -- Image repository
repository: intel/intel-gpu-plugin
# -- Image pull policy
pullPolicy: IfNotPresent
# -- Image tag. Possible values listed [here](https://hub.docker.com/r/intel/intel-gpu-plugin/tags)
tag: 0.20.0
# -- Specifies the strategy used to replace old Pods by new ones
strategyType: Recreate
controllerType: daemonset
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
strategy:
type: Recreate
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
# -- Number of containers sharing the same GPU device
# @default -- 1
sharedDeviceNumber: 1
args:
- -shared-dev-num
- "1"
# -- Key-value pairs to add as pod annotations
podAnnotations: {}
envValueFrom:
NODE_NAME:
fieldRef:
fieldPath: spec.nodeName
podSecurityContext: {}
# fsGroup: 2000
hostPathMounts:
- name: "devfs"
enabled: true
emptyDir: false
mountPath: "/dev/dri"
hostPath: "/dev/dri"
readOnly: true
- name: "sysfs"
enabled: true
emptyDir: false
mountPath: "/sys/class/drm"
hostPath: "/sys/class/drm"
readOnly: true
- name: "kubeletsockets"
enabled: true
emptyDir: false
mountPath: "/var/lib/kubelet/device-plugins"
hostPath: "/var/lib/kubelet/device-plugins"
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
ingress:
enabled: false
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
service:
enabled: false
nodeSelector: {}
tolerations: []
affinity: {}
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false

View File

@@ -1,8 +1,9 @@
---
apiVersion: v2
appVersion: v1.22.0
description: A self-hosted data logger for your Tesla 🚘
name: teslamate
version: 3.7.0
version: 4.0.0
keywords:
- teslamate
- tesla
@@ -11,10 +12,13 @@ icon: https://upload.wikimedia.org/wikipedia/commons/thumb/b/bd/Tesla_Motors.svg
sources:
- https://github.com/adriankumpf/teslamate
dependencies:
- name: postgresql
version: 10.4.0
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled
- name: common
repository: https://library-charts.k8s-at-home.com
version: 2.5.0
- name: postgresql
version: 10.4.0
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled
maintainers:
- name: billimek
email: jeff@billimek.com

View File

@@ -1,6 +1,6 @@
# teslamate
![Version: 3.6.5](https://img.shields.io/badge/Version-3.6.5-informational?style=flat-square) ![AppVersion: v1.22.0](https://img.shields.io/badge/AppVersion-v1.22.0-informational?style=flat-square)
![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) ![AppVersion: v1.22.0](https://img.shields.io/badge/AppVersion-v1.22.0-informational?style=flat-square)
A self-hosted data logger for your Tesla 🚘
@@ -16,7 +16,8 @@ A self-hosted data logger for your Tesla 🚘
| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | postgresql | 10.3.15 |
| https://charts.bitnami.com/bitnami | postgresql | 10.4.0 |
| https://library-charts.k8s-at-home.com | common | 2.5.0 |
## TL;DR
@@ -73,52 +74,17 @@ N/A
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| checkOrigin | bool | `false` | |
| fullnameOverride | string | `""` | |
| env | object | `{}` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"teslamate/teslamate"` | |
| image.tag | string | `"1.22.0"` | |
| ingress.annotations | object | `{}` | |
| ingress.enabled | bool | `false` | |
| ingress.hosts[0] | string | `"chart-example.local"` | |
| ingress.path | string | `"/"` | |
| ingress.tls | list | `[]` | |
| locale | string | `"en"` | |
| mqtt.enabled | bool | `false` | |
| mqtt.host | string | `nil` | |
| mqtt.password | string | `nil` | |
| mqtt.tls | string | `nil` | |
| mqtt.tlsAcceptInvalid | string | `nil` | |
| mqtt.username | string | `nil` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| postgresql.enabled | bool | `true` | |
| postgresql.image.repository | string | `"postgres"` | |
| postgresql.image.tag | float | `12.1` | |
| postgresql.persistence.accessModes[0] | string | `"ReadWriteOnce"` | |
| postgresql.persistence.enabled | bool | `true` | |
| postgresql.persistence.mountPath | string | `"/data/"` | |
| postgresql.persistence.size | string | `"8Gi"` | |
| postgresql.persistence.storageClass | string | `nil` | |
| postgresql.postgresqlDataDir | string | `"/data/pgdata"` | |
| postgresql.postgresqlDatabase | string | `"teslamate"` | |
| postgresql.postgresqlPassword | string | `"teslamate"` | |
| postgresql.postgresqlUsername | string | `"teslamate"` | |
| probes.liveness.failureThreshold | int | `15` | |
| probes.liveness.periodSeconds | int | `10` | |
| probes.readiness.failureThreshold | int | `15` | |
| probes.readiness.periodSeconds | int | `10` | |
| probes.startup.failureThreshold | int | `30` | |
| probes.startup.initialDelaySeconds | int | `15` | |
| probes.startup.periodSeconds | int | `10` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| service.port | int | `4000` | |
| service.type | string | `"ClusterIP"` | |
| timeZone | string | `"UTC"` | |
| tolerations | list | `[]` | |
| virtualHost | string | `nil` | |
| persistence.import.emptyDir.enabled | bool | `false` | |
| persistence.import.enabled | bool | `false` | |
| persistence.import.mountPath | string | `"/opt/app/import"` | |
| postgresql.enabled | bool | `false` | |
| service.port.port | int | `4000` | |
| strategy.type | string | `"Recreate"` | |
## Changelog
@@ -126,6 +92,20 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [4.0.0]
#### Added
- N/A
#### Changed
- **BREAKING** Migrate to the common library, a lot of configuration has changed.
#### Removed
- test-connection
### [3.6.1]
#### Added
@@ -140,7 +120,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[3.6.1]: #3.6.1
[4.0.0]: #400
[3.6.1]: #361
## Support

View File

@@ -143,3 +143,4 @@ helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }} -
{{ template "custom.support" . }}
{{ template "helm-docs.versionFooter" . }}
{{ "" }}

View File

@@ -9,6 +9,20 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [4.0.0]
#### Added
- N/A
#### Changed
- **BREAKING** Migrate to the common library, a lot of configuration has changed.
#### Removed
- test-connection
### [3.6.1]
#### Added
@@ -23,5 +37,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[3.6.1]: #3.6.1
[4.0.0]: #400
[3.6.1]: #361
{{- end -}}

View File

@@ -0,0 +1,19 @@
---
env:
DATABASE_USER: "postgres"
DATABASE_PASS: "teslamate-pass"
DATABASE_NAME: "teslamate"
DATABASE_HOST: teslamate-postgresql
DISABLE_MQTT: "true"
fullnameOverride: teslamate
postgresql:
enabled: true
postgresqlUsername: postgres
postgresqlPassword: teslamate-pass
postgresqlDatabase: teslamate
persistence:
enabled: false
# storageClass: ""
fullnameOverride: teslamate-postgresql

View File

@@ -1,21 +1 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range $.Values.ingress.paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host }}{{ . }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "teslamate.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get svc -w {{ include "teslamate.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "teslamate.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "teslamate.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl port-forward $POD_NAME 8080:80
{{- end }}
{{- include "common.notes.defaultNotes" . -}}

View File

@@ -1,41 +0,0 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "teslamate.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "teslamate.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create a default fully qualified postgresql name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "teslamate.postgresql.fullname" -}}
{{- $name := default "postgresql" .Values.postgresql.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "teslamate.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

View File

@@ -0,0 +1 @@
{{ include "common.all" . }}

View File

@@ -1,109 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "teslamate.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "teslamate.name" . }}
helm.sh/chart: {{ include "teslamate.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: 3
selector:
matchLabels:
app.kubernetes.io/name: {{ include "teslamate.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "teslamate.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- if .Values.postgresql.postgresqlUsername }}
- name: DATABASE_USER
value: {{ .Values.postgresql.postgresqlUsername | quote }}
{{- end }}
{{- if .Values.postgresql.postgresqlPassword }}
- name: DATABASE_PASS
value: {{ .Values.postgresql.postgresqlPassword | quote }}
{{- end }}
{{- if .Values.postgresql.postgresqlDatabase }}
- name: DATABASE_NAME
value: {{ .Values.postgresql.postgresqlDatabase | quote }}
{{- end }}
- name: DATABASE_HOST
value: {{ template "teslamate.postgresql.fullname" . }}
{{- if .Values.mqtt.enabled }}
- name: MQTT_HOST
value: {{ .Values.mqtt.host | quote }}
- name: MQTT_USERNAME
value: {{ .Values.mqtt.username | quote }}
- name: MQTT_PASSWORD
value: {{ .Values.mqtt.password | quote }}
- name: MQTT_TLS
value: {{ .Values.mqtt.tls | quote }}
- name: MQTT_TLS_ACCEPT_INVALID_CERTS
value: {{ .Values.mqtt.tlsAcceptInvalid | quote }}
{{- else }}
- name: DISABLE_MQTT
value: "true"
{{- end }}
{{- if .Values.timeZone }}
- name: TZ
value: {{ .Values.timeZone | quote }}
{{- end }}
{{- if .Values.checkOrigin }}
- name: CHECK_ORIGIN
value: {{ .Values.checkOrigin | quote }}
{{- end }}
{{- if .Values.virtualHost }}
- name: VIRTUAL_HOST
value: {{ .Values.virtualHost | quote }}
{{- end }}
{{- if .Values.locale }}
- name: LOCALE
value: {{ .Values.locale | quote }}
{{- end }}
ports:
- name: http
containerPort: 4000
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
readinessProbe:
httpGet:
path: /
port: http
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
startupProbe:
httpGet:
path: /
port: http
initialDelaySeconds: {{ .Values.probes.startup.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.startup.failureThreshold }}
periodSeconds: {{ .Values.probes.startup.periodSeconds }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@@ -1,38 +0,0 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "teslamate.fullname" . -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
app.kubernetes.io/name: {{ include "teslamate.name" . }}
helm.sh/chart: {{ include "teslamate.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ . | quote }}
http:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}
servicePort: http
{{- end }}
{{- end }}

View File

@@ -1,19 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "teslamate.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "teslamate.name" . }}
helm.sh/chart: {{ include "teslamate.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: {{ include "teslamate.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}

View File

@@ -1,18 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "teslamate.fullname" . }}-test-connection"
labels:
app.kubernetes.io/name: {{ include "teslamate.name" . }}
helm.sh/chart: {{ include "teslamate.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
annotations:
"helm.sh/hook": test-success
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "teslamate.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never

View File

@@ -1,101 +1,50 @@
replicaCount: 1
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
#
image:
repository: teslamate/teslamate
tag: 1.22.0
pullPolicy: IfNotPresent
nameOverride: ""
fullnameOverride: ""
strategy:
type: Recreate
timeZone: UTC
mqtt:
enabled: false
# mqtt broker hostname - REQUIRED if mqtt is enabled
host:
username:
password:
# Enables TLS if true
tls:
# Accepts invalid certificates if true
tlsAcceptInvalid:
# Configures whether to check the origin header or not.
checkOrigin: false
# Host part used for generating URLs throughout the app
virtualHost:
# valid values are 'en' or 'de'
locale: en
# Probes configuration
probes:
liveness:
failureThreshold: 15
periodSeconds: 10
readiness:
failureThreshold: 15
periodSeconds: 10
startup:
initialDelaySeconds: 15
failureThreshold: 30
periodSeconds: 10
# See more environment variables in the teslamate documentation
# https://docs.teslamate.org/docs/configuration/environment_variables
env: {}
# TZ:
# DATABASE_USER: "postgres"
# DATABASE_PASS: "teslamate-pass"
# DATABASE_NAME: "teslamate"
# DATABASE_HOST: teslamate-postgresql
# DISABLE_MQTT: "true"
service:
type: ClusterIP
port: 4000
port:
port: 4000
ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
path: /
hosts:
- chart-example.local
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
nodeSelector: {}
tolerations: []
affinity: {}
persistence:
import:
enabled: false
emptyDir:
enabled: false
mountPath: /opt/app/import
# Configuration values for the postgresql dependency.
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
postgresql:
enabled: true
postgresqlUsername: teslamate
postgresqlPassword: teslamate
postgresqlDatabase: teslamate
image:
repository: postgres
tag: 12.1
postgresqlDataDir: "/data/pgdata"
persistence:
enabled: true
storageClass:
accessModes:
- ReadWriteOnce
size: 8Gi
mountPath: "/data/"
enabled: false
# postgresqlUsername: postgres
# postgresqlPassword: teslamate-pass
# postgresqlDatabase: teslamate
# persistence:
# enabled: false
# storageClass: ""
# fullnameOverride: teslamate-postgresql

View File

@@ -2,13 +2,13 @@ apiVersion: v2
appVersion: 2.5.191
description: Make documentation a joy to write using Wiki.js's beautiful and intuitive interface!
name: wikijs
version: 4.4.0
version: 4.4.1
kubeVersion: ">=1.16.0-0"
keywords:
- wiki
- wikijs
home: https://github.com/k8s-at-home/charts/tree/master/charts/stable/wikijs
icon: https://static.requarks.io/logo/wikijs-full.svg
icon: https://static.requarks.io/logo/wikijs-butterfly.svg
sources:
- https://hub.docker.com/r/linuxserver/wikijs/
- https://github.com/Requarks/wiki

View File

@@ -1,6 +1,6 @@
# wikijs
![Version: 4.2.0](https://img.shields.io/badge/Version-4.2.0-informational?style=flat-square) ![AppVersion: 2.5.191](https://img.shields.io/badge/AppVersion-2.5.191-informational?style=flat-square)
![Version: 4.4.1](https://img.shields.io/badge/Version-4.4.1-informational?style=flat-square) ![AppVersion: 2.5.191](https://img.shields.io/badge/AppVersion-2.5.191-informational?style=flat-square)
Make documentation a joy to write using Wiki.js's beautiful and intuitive interface!
@@ -19,7 +19,7 @@ Kubernetes: `>=1.16.0-0`
| Repository | Name | Version |
|------------|------|---------|
| https://library-charts.k8s-at-home.com | common | 2.2.0 |
| https://library-charts.k8s-at-home.com | common | 2.5.0 |
## TL;DR
@@ -89,9 +89,6 @@ N/A
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"linuxserver/wikijs"` | |
| image.tag | string | `"version-2.5.191"` | |
| ingress."ingress.hosts[0].host" | string | `"chart-example.local"` | |
| ingress."ingress.hosts[0].paths[0].path" | string | `"/"` | |
| ingress."ingress.hosts[0].paths[0].pathType" | string | `"Prefix"` | |
| ingress.enabled | bool | `false` | |
| persistence.config.accessMode | string | `"ReadWriteOnce"` | |
| persistence.config.emptyDir.enabled | bool | `false` | |
@@ -111,21 +108,23 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [0.0.1]
### [4.4.1]
#### Added
- First version of the helm chart for wikijs
- N/A
#### Changed
- N/A
- Updated icon url.
#### Removed
- N/A
- `ingress.hosts[0].host: "chart-example.local"`
- `ingress.hosts[0].paths[0].path: "/"`
- `ingress.hosts[0].paths[0].pathType: "Prefix"`
[0.0.1]: #0.0.1
[4.4.1]: #441
## Support
@@ -135,4 +134,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Join our [Discord](https://discord.gg/sTMX7Vh) community
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)

View File

@@ -143,3 +143,4 @@ helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }} -
{{ template "custom.support" . }}
{{ template "helm-docs.versionFooter" . }}
{{ "" }}

View File

@@ -9,19 +9,21 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [0.0.1]
### [4.4.1]
#### Added
- First version of the helm chart for wikijs
- N/A
#### Changed
- N/A
- Updated icon url.
#### Removed
- N/A
- `ingress.hosts[0].host: "chart-example.local"`
- `ingress.hosts[0].paths[0].path: "/"`
- `ingress.hosts[0].paths[0].pathType: "Prefix"`
[0.0.1]: #0.0.1
[4.4.1]: #441
{{- end -}}

View File

@@ -47,9 +47,6 @@ service:
ingress:
# enable this if you would like to access you wiki
enabled: false
ingress.hosts[0].host: "chart-example.local"
ingress.hosts[0].paths[0].path: "/"
ingress.hosts[0].paths[0].pathType: "Prefix"
persistence:
config: