mirror of
https://github.com/nikdoof/helm-charts.git
synced 2025-12-17 20:09:21 +00:00
Compare commits
6 Commits
deluge-1.0
...
aaisp-to-m
| Author | SHA1 | Date | |
|---|---|---|---|
|
e90e2b8e07
|
|||
| 0ab91c1e82 | |||
| 3a1405d14d | |||
| 81fc336fbd | |||
| bcac7514af | |||
| 19901a5d94 |
22
charts/aaisp-to-mqtt/.helmignore
Normal file
22
charts/aaisp-to-mqtt/.helmignore
Normal file
@@ -0,0 +1,22 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
||||
5
charts/aaisp-to-mqtt/Chart.yaml
Normal file
5
charts/aaisp-to-mqtt/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: v1
|
||||
appVersion: "0.2"
|
||||
description: Pulls data from the AAISP CHAOSv2 API into MQTT
|
||||
name: aaisp-to-mqtt
|
||||
version: 0.1.0
|
||||
56
charts/aaisp-to-mqtt/templates/_helpers.tpl
Normal file
56
charts/aaisp-to-mqtt/templates/_helpers.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "aaisp-to-mqtt.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 "aaisp-to-mqtt.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 "aaisp-to-mqtt.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "aaisp-to-mqtt.labels" -}}
|
||||
app.kubernetes.io/name: {{ include "aaisp-to-mqtt.name" . }}
|
||||
helm.sh/chart: {{ include "aaisp-to-mqtt.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- if .Chart.AppVersion }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "aaisp-to-mqtt.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
{{ default (include "aaisp-to-mqtt.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else -}}
|
||||
{{ default "default" .Values.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
90
charts/aaisp-to-mqtt/templates/cronjob.yaml
Normal file
90
charts/aaisp-to-mqtt/templates/cronjob.yaml
Normal file
@@ -0,0 +1,90 @@
|
||||
---
|
||||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: {{ include "aaisp-to-mqtt.fullname" . }}-cronjob
|
||||
{{- if .Values.deploymentAnnotations }}
|
||||
annotations:
|
||||
{{- range $key, $value := .Values.deploymentAnnotations }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "aaisp-to-mqtt.name" . }}
|
||||
helm.sh/chart: {{ include "aaisp-to-mqtt.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ include "aaisp-to-mqtt.name" . }}
|
||||
spec:
|
||||
concurrencyPolicy: {{ .Values.cronjob.concurrencyPolicy }}
|
||||
failedJobsHistoryLimit: {{ .Values.cronjob.failedJobsHistoryLimit }}
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "aaisp-to-mqtt.name" . }}
|
||||
helm.sh/chart: {{ include "aaisp-to-mqtt.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ include "aaisp-to-mqtt.name" . }}
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
{{- if (default .Values.image.pullSecrets .Values.cronjob.image.pullSecrets) }}
|
||||
imagePullSecrets:
|
||||
{{- range (default .Values.image.pullSecrets .Values.cronjob.image.pullSecrets) }}
|
||||
- name: {{ . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ default .Values.image.repository .Values.cronjob.image.repository }}:{{ default .Values.image.tag .Values.cronjob.image.tag }}"
|
||||
imagePullPolicy: {{ default .Values.image.pullPolicy .Values.cronjob.image.pullPolicy }}
|
||||
env:
|
||||
- name: AAISP_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{- default "aaisp-to-mqtt-secret" .Values.existingSecretName }}
|
||||
key: aaisp.username
|
||||
- name: AAISP_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{- default "aaisp-to-mqtt-secret" .Values.existingSecretName }}
|
||||
key: aaisp.password
|
||||
- name: MQTT_BROKER
|
||||
value: {{ .Values.mqtt.broker }}
|
||||
- name: MQTT_PORT
|
||||
value: {{- default 1883 .Values.mqtt.port }}
|
||||
{{- .Values.mqtt.authenticated }}
|
||||
- name: MQTT_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{- default "aaisp-to-mqtt-secret" .Values.existingSecretName }}
|
||||
key: mqtt.username
|
||||
- name: MQTT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{- default "aaisp-to-mqtt-secret" .Values.existingSecretName }}
|
||||
key: mqtt.password
|
||||
{{- end }}
|
||||
- name: MQTT_TOPIC_PREFIX
|
||||
value: {{ default "aaisp" .Values.mqtt.topicPrefix }}
|
||||
resources:
|
||||
{{ toYaml (default .Values.resources .Values.cronjob.resources) | indent 16 }}
|
||||
{{- with (default .Values.nodeSelector .Values.cronjob.nodeSelector) }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | indent 12 }}
|
||||
{{- end }}
|
||||
{{- with (default .Values.affinity .Values.cronjob.affinity) }}
|
||||
affinity:
|
||||
{{ toYaml . | indent 12 }}
|
||||
{{- end }}
|
||||
{{- with (default .Values.tolerations .Values.cronjob.tolerations) }}
|
||||
tolerations:
|
||||
{{ toYaml . | indent 12 }}:
|
||||
{{- end }}
|
||||
schedule: {{ .Values.schedule | quote }}
|
||||
successfulJobsHistoryLimit: {{ .Values.cronjob.successfulJobsHistoryLimit }}
|
||||
failedJobsHistoryLimit: {{ .Values.cronjob.failedJobsHistoryLimit }}
|
||||
concurrencyPolicy: Forbid
|
||||
{{- if .Values.cronjob.startingDeadlineSeconds }}
|
||||
startingDeadlineSeconds: {{ .Values.cronjob.startingDeadlineSeconds }}
|
||||
{{- end }}
|
||||
20
charts/aaisp-to-mqtt/templates/secrets.yaml
Normal file
20
charts/aaisp-to-mqtt/templates/secrets.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
{{- if Not(.Values.cronjob.existingSecretName) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: aaisp-to-mqtt-secret
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "aaisp-to-mqtt.name" . }}
|
||||
helm.sh/chart: {{ include "aaisp-to-mqtt.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ include "aaisp-to-mqtt.name" . }}
|
||||
type: Opaque
|
||||
data:
|
||||
aaisp.username: {{ .Values.aaisp.username }}
|
||||
aaisp.password: {{ .Values.aaisp.password }}
|
||||
{{- if .Values.mqtt.authenticated }}
|
||||
mqtt.username: {{ .Values.mqtt.username }}
|
||||
mqtt.password: {{ .Values.mqtt.password }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
61
charts/aaisp-to-mqtt/values.yaml
Normal file
61
charts/aaisp-to-mqtt/values.yaml
Normal file
@@ -0,0 +1,61 @@
|
||||
# Default values for aaisp-to-mqtt.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: nikdoof/aaisp-to-mqtt
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
## Use a pre-existing secret for login information
|
||||
##
|
||||
# existingSecretName: existing-secret
|
||||
|
||||
## Connection details
|
||||
##
|
||||
aaisp:
|
||||
# username: user1@a
|
||||
# password: password
|
||||
|
||||
mqtt:
|
||||
# broker: localhost
|
||||
port: 1883
|
||||
authenticated: false
|
||||
# username: kube
|
||||
# password: kube
|
||||
# topicPrefix: aaisp
|
||||
|
||||
cronjob:
|
||||
schedule: "*/10 * * *"
|
||||
successfulJobsHistoryLimit: 3
|
||||
failedJobsHistoryLimit: 1
|
||||
# startingDeadlineSeconds: 10
|
||||
# imagePullSecrets: []
|
||||
# resources: {}
|
||||
# nodeSelector: {}
|
||||
# tolerations: []
|
||||
# affinity: {}
|
||||
|
||||
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: {}
|
||||
@@ -1,8 +1,8 @@
|
||||
apiVersion: v1
|
||||
appVersion: 0.6.6-ls58
|
||||
description: A Python based monitoring and tracking tool for Plex Media Server.
|
||||
description: A simple web viewer for Calibre libraries
|
||||
name: calibre-web
|
||||
version: 1.0.0
|
||||
version: 1.1.1
|
||||
keywords:
|
||||
- calibre-web
|
||||
- calibre
|
||||
@@ -39,6 +39,7 @@ The following tables lists the configurable parameters of the Sentry chart and t
|
||||
| `timezone` | Timezone the calibre-web instance should run as, e.g. 'America/New_York' | `UTC` |
|
||||
| `puid` | process userID the calibre-web instance should run as | `1001` |
|
||||
| `pgid` | process groupID the calibre-web instance should run as | `1001` |
|
||||
`dockerMods` | Enable "Docker Mods" for the Calibre-Web container | `nil` |
|
||||
| `probes.liveness.initialDelaySeconds` | Specify liveness `initialDelaySeconds` parameter for the deployment | `60` |
|
||||
| `probes.liveness.failureThreshold` | Specify liveness `failureThreshold` parameter for the deployment | `5` |
|
||||
| `probes.liveness.timeoutSeconds` | Specify liveness `timeoutSeconds` parameter for the deployment | `10` |
|
||||
@@ -64,6 +65,14 @@ The following tables lists the configurable parameters of the Sentry chart and t
|
||||
| `persistence.config.storageClass` | Type of persistent volume claim | `-` |
|
||||
| `persistence.config.accessMode` | Persistence access mode | `ReadWriteOnce` |
|
||||
| `persistence.config.skipuninstall` | Do not delete the pvc upon helm uninstall | `false` |
|
||||
| `persistence.books.enabled` | Use persistent volume to store books | `true` |
|
||||
| `persistence.books.size` | Size of persistent volume claim | `1Gi` |
|
||||
| `persistence.books.existingClaim`| Use an existing PVC to persist data | `nil` |
|
||||
| `persistence.books.subPath` | Mount a sub directory of the persistent volume if set | `""` |
|
||||
| `persistence.books.storageClass` | Type of persistent volume claim | `-` |
|
||||
| `persistence.books.accessMode` | Persistence access mode | `ReadWriteOnce` |
|
||||
| `persistence.books.skipuninstall` | Do not delete the pvc upon helm uninstall | `false` |
|
||||
| `persistence.extraExistingClaimMounts` | Optionally add multiple existing claims to the container | `[]` |
|
||||
| `resources` | CPU/Memory resource requests/limits | `{}` |
|
||||
| `nodeSelector` | Node labels for pod assignment | `{}` |
|
||||
| `tolerations` | Toleration labels for pod assignment | `[]` |
|
||||
@@ -61,8 +61,10 @@ spec:
|
||||
value: "{{ .Values.puid }}"
|
||||
- name: PGID
|
||||
value: "{{ .Values.pgid }}"
|
||||
{{- if .values.dockerMods }}
|
||||
- name: DOCKER_MODS
|
||||
value: "linuxserver/calibre-web:calibre"
|
||||
value: {{ .Values.dockerMods }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: config
|
||||
@@ -28,6 +28,11 @@ timezone: UTC
|
||||
puid: 1001
|
||||
pgid: 1001
|
||||
|
||||
## Configure docker_mods for this container. For x86 systems you can uncomment the following
|
||||
## and enable ebook conversion tools in calbire-web
|
||||
##
|
||||
# dockerMods: linuxserver/calibre-web:calibre
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 8083
|
||||
@@ -1,16 +1,17 @@
|
||||
apiVersion: v1
|
||||
appVersion: 2.0.3-2201906121747ubuntu18.04.1-ls57
|
||||
description: Deluge is a Python BitTorrent client based on libtorrent
|
||||
name: deluge
|
||||
version: 1.0.1
|
||||
version: 1.1.0
|
||||
keywords:
|
||||
- deluge
|
||||
- libtorrent
|
||||
home: https://github.com/nikdoof/home-k8s-flux/tree/master/charts/deluge
|
||||
icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/deluge-icon.png
|
||||
home: https://github.com/nikdoof/helm-charts/charts/deluge
|
||||
sources:
|
||||
- https://hub.docker.com/r/linuxserver/deluge/
|
||||
- https://github.com/janeczku/deluge
|
||||
dependencies: []
|
||||
maintainers:
|
||||
- name: nikdoof
|
||||
email: andy@tensixtyone.com
|
||||
icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/deluge-icon.png
|
||||
appVersion: 2.0.3-2201906121747ubuntu18.04.1-ls57
|
||||
@@ -70,6 +70,10 @@ spec:
|
||||
value: "{{ .Values.puid }}"
|
||||
- name: PGID
|
||||
value: "{{ .Values.pgid }}"
|
||||
{{- if .values.dockerMods }}
|
||||
- name: DOCKER_MODS
|
||||
value: {{ .Values.dockerMods }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: config
|
||||
@@ -28,6 +28,10 @@ timezone: UTC
|
||||
puid: 1001
|
||||
pgid: 1001
|
||||
|
||||
## Configure docker_mods for this container. (https://github.com/linuxserver/docker-mods)
|
||||
##
|
||||
# dockerMods: linuxserver/deluge:ssh
|
||||
|
||||
webuiservice:
|
||||
type: ClusterIP
|
||||
port: 8112
|
||||
Reference in New Issue
Block a user