Merge pull request #4 from nikdoof/vsphere-influxdb-go-testing

Add Chart Testing and fixes for Deluge
This commit is contained in:
2020-05-07 21:55:29 +01:00
committed by GitHub
16 changed files with 178 additions and 27 deletions

32
README.md Normal file
View File

@@ -0,0 +1,32 @@
# Helm Charts
A small set of custom Helm charts to cover some smaller applications not covered by Stable and other repos.
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![](https://github.com/nikdoof/helm-charts/workflows/Release%20Charts/badge.svg?branch=master)](https://github.com/nikdoof/helm-charts/actions)
## Usage
[Helm](https://helm.sh) must be installed to use the charts.
Please refer to Helm's [documentation](https://helm.sh/docs/) to get started.
Once Helm is set up properly, add the repo as follows:
```console
helm repo add nikdoof https://nikdoof.github.io/helm-charts/
```
You can then run `helm search nikdoof` to see the charts.
## Charts
See [charts folder](./charts) for a complete list.
* [aaisp-to-mqtt](./charts/aaisp-to-mqtt) - A tool to pull information from [Andrews & Arnold](https://www.aa.net.uk/) CHAOSv2 API and output to MQTT
* [calibre-web](./charts/calibre-web) - Web app for browsing, reading and downloading eBooks stored in a Calibre database
* [deluge](./charts/deluge) - Deluge torrent client
## License
[MIT License](./LICENSE)

View File

@@ -2,4 +2,14 @@ apiVersion: v1
appVersion: "0.2"
description: Pulls data from the AAISP CHAOSv2 API into MQTT
name: aaisp-to-mqtt
version: 0.2.4
version: 0.2.5
keywords:
- aaisp
- mqtt
home: https://github.com/nikdoof/aaisp-to-mqtt
sources:
- https://hub.docker.com/r/nikdoof/aaisp-to-mqtt/
- https://github.com/natm/aaisp-to-mqtt
maintainers:
- name: nikdoof
email: andy@tensixtyone.com

View File

@@ -0,0 +1,4 @@
mqtt:
broker: localhost
existingSecretName: aaisp-to-mqtt-secret

View File

@@ -0,0 +1,6 @@
aaisp:
username: test1@a
password: TesttestTest
mqtt:
broker: localhost

View File

@@ -2,15 +2,14 @@ apiVersion: v1
appVersion: 0.6.6-ls58
description: A simple web viewer for Calibre libraries
name: calibre-web
version: 1.1.2
version: 1.1.3
keywords:
- calibre-web
- calibre
home: https://github.com/nikdoof/home-k8s-flux/tree/master/charts/calibre-web
home: https://github.com/janeczku/calibre-web
icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/calibre-web-icon.png
sources:
- https://hub.docker.com/r/linuxserver/calibre-web/
- https://github.com/janeczku/calibre-web
maintainers:
- name: nikdoof
email: andy@tensixtyone.com

View File

@@ -5,7 +5,8 @@ This is a helm chart for [calibre-web](https://calibre-web.com/) leveraging the
## TL;DR;
```shell
$ helm install ./calibre-web
$ helm repo add nikdoof https://nikdoof.github.io/helm-charts/
$ helm install calibre-web
```
## Installing the Chart
@@ -13,7 +14,7 @@ $ helm install ./calibre-web
To install the chart with the release name `my-release`:
```console
helm install --name my-release ./calibre-web
helm install --name my-release calibre-web
```
## Uninstalling the Chart
@@ -101,4 +102,4 @@ If you get `Error: rendered manifests contain a resource that already exists. Un
---
Read through the [values.yaml](https://github.com/nikdoof/home-k8s-flux/blob/master/charts/calibre-web/values.yaml) file. It has several commented out suggested values.
Read through the [values.yaml](https://github.com/nikdoof/helm-charts/tree/master/charts/calibre-web/values.yaml) file. It has several commented out suggested values.

View File

@@ -1,14 +1,13 @@
apiVersion: v1
description: Deluge is a Python BitTorrent client based on libtorrent
name: deluge
version: 1.1.1
version: 1.2.0
keywords:
- deluge
- libtorrent
home: https://github.com/nikdoof/helm-charts/charts/deluge
home: https://github.com/deluge-torrent/deluge
sources:
- https://hub.docker.com/r/linuxserver/deluge/
- https://github.com/janeczku/deluge
dependencies: []
maintainers:
- name: nikdoof

View File

@@ -5,7 +5,8 @@ This is a helm chart for [deluge](https://deluge.com/) leveraging the [Linuxserv
## TL;DR;
```shell
$ helm install ./deluge
$ helm repo add nikdoof https://nikdoof.github.io/helm-charts/
$ helm install deluge
```
## Installing the Chart
@@ -13,7 +14,7 @@ $ helm install ./deluge
To install the chart with the release name `my-release`:
```console
helm install --name my-release ./deluge
helm install --name my-release deluge
```
## Uninstalling the Chart
@@ -105,4 +106,4 @@ If you get `Error: rendered manifests contain a resource that already exists. Un
---
Read through the [values.yaml](https://github.com/nikdoof/home-k8s-flux/blob/master/charts/deluge/values.yaml) file. It has several commented out suggested values.
Read through the [values.yaml](https://github.com/nikdoof/helm-charts/tree/master/charts/deluge/values.yaml) file. It has several commented out suggested values.

View File

@@ -0,0 +1 @@
---

View File

@@ -1,3 +1,5 @@
---
{{ if .Values.btservice.enabled }}
apiVersion: v1
kind: Service
metadata:
@@ -40,21 +42,14 @@ spec:
externalTrafficPolicy: {{ .Values.btservice.externalTrafficPolicy }}
{{- end }}
ports:
- name: daemon
port: 58846
protocol: TCP
targetPort: daemon
{{ if (eq .Values.btservice.type "NodePort") }}
nodePort: 58846
{{ end }}
- name: bt-tcp
port: 58946
protocol: TCP
targetPort: bt-tcp
{{ if (eq .Values.btservice.type "NodePort") }}
nodePort: 58946
nodePort: {{ default 30846 .Values.btservice.nodePort }}
{{ end }}
selector:
app.kubernetes.io/name: {{ include "deluge.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{ end }}

View File

@@ -1,3 +1,5 @@
---
{{ if .Values.btservice.enabled }}
apiVersion: v1
kind: Service
metadata:
@@ -45,9 +47,9 @@ spec:
protocol: UDP
targetPort: bt-udp
{{ if (eq .Values.btservice.type "NodePort") }}
nodePort: 58946
nodePort: {{ default 30846 .Values.btservice.nodePort }}
{{ end }}
selector:
app.kubernetes.io/name: {{ include "deluge.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{ end }}

View File

@@ -0,0 +1,53 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "deluge.fullname" . }}-daemon
labels:
app.kubernetes.io/name: {{ include "deluge.name" . }}
helm.sh/chart: {{ include "deluge.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.daemonservice.labels }}
{{ toYaml .Values.daemonservice.labels | indent 4 }}
{{- end }}
{{- with .Values.daemonservice.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if (or (eq .Values.daemonservice.type "ClusterIP") (empty .Values.daemonservice.type)) }}
type: ClusterIP
{{- if .Values.daemonservice.clusterIP }}
clusterIP: {{ .Values.daemonservice.clusterIP }}
{{end}}
{{- else if eq .Values.daemonservice.type "LoadBalancer" }}
type: {{ .Values.daemonservice.type }}
{{- if .Values.daemonservice.loadBalancerIP }}
loadBalancerIP: {{ .Values.daemonservice.loadBalancerIP }}
{{- end }}
{{- if .Values.daemonservice.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml .Values.daemonservice.loadBalancerSourceRanges | indent 4 }}
{{- end -}}
{{- else }}
type: {{ .Values.daemonservice.type }}
{{- end }}
{{- if .Values.daemonservice.externalIPs }}
externalIPs:
{{ toYaml .Values.daemonservice.externalIPs | indent 4 }}
{{- end }}
{{- if .Values.daemonservice.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.daemonservice.externalTrafficPolicy }}
{{- end }}
ports:
- name: daemon
port: 58846
protocol: TCP
targetPort: daemon
{{ if (eq .Values.daemonservice.type "NodePort") }}
nodePort: {{ default 30846 .Values.daemonservice.nodePort }}
{{ end }}
selector:
app.kubernetes.io/name: {{ include "deluge.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}

View File

@@ -32,6 +32,7 @@ pgid: 1001
##
# dockerMods: linuxserver/deluge:ssh
## Service for the WebUI port
webuiservice:
type: ClusterIP
port: 8112
@@ -53,8 +54,10 @@ webuiservice:
## Set the externalTrafficPolicy in the Service to either Cluster or Local
# externalTrafficPolicy: Cluster
btservice:
type: NodePort
## Service for the Daemon port
daemonservice:
type: ClusterIP
port:
## Specify the nodePort value for the LoadBalancer and NodePort service types.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
##
@@ -73,6 +76,31 @@ btservice:
## Set the externalTrafficPolicy in the Service to either Cluster or Local
# externalTrafficPolicy: Cluster
## Service for the BT taffic port - ideally these should be a LB due to a high port
## and also sharing TCP and UDP services on the same port.
btservice:
enabled: false
type: LoadBalancer
## Specify the nodePort value for the LoadBalancer and NodePort service types.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
##
# nodePort:
## Provide any additional annotations which may be required. This can be used to
## set the LoadBalancer service type to internal only.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
##
annotations: {}
# annotations:
# metallb.universe.tf/allow-shared-ip: deluge
labels: {}
## Use loadBalancerIP to request a specific static IP,
## otherwise leave blank
##
loadBalancerIP:
# loadBalancerSourceRanges: []
## Set the externalTrafficPolicy in the Service to either Cluster or Local
# externalTrafficPolicy: Cluster
ingress:
enabled: false
annotations: {}

View File

@@ -2,4 +2,15 @@ apiVersion: v1
appVersion: "0.8.5"
description: Collect VMware vCenter and ESXi performance metrics and send them to InfluxDB
name: vsphere-influxdb-go
version: 0.1.0
version: 0.1.1
keywords:
- vsphere
- influxdb
- esx
home: https://github.com/Oxalide/vsphere-influxdb-go
sources:
- https://hub.docker.com/r/nikdoof/vsphere-influxdb-go/
- https://github.com/janeczku/calibre-web
maintainers:
- name: nikdoof
email: andy@tensixtyone.com

View File

@@ -0,0 +1,7 @@
vsphere:
hostname: vcenter
username: test
password: test
influxdb:
hostname: test

2
ct.yaml Normal file
View File

@@ -0,0 +1,2 @@
chart-dirs:
- charts