Compare commits

..

3 Commits

Author SHA1 Message Date
Mike K
157e898ed0 [neolink] New chart contribution (#434)
* Neolink chart

* .

* Revert

* Heh

* Comment out sample config

* Revert last commit
2020-12-27 11:36:48 -05:00
Mike K
0e6c5c3617 Tweak readme (#435) 2020-12-27 07:23:36 -05:00
dza89
144350e4c9 Remove /metrics from probes (#433)
Signed-off-by: Daan <dhapotter@gmail.com>
2020-12-25 15:12:35 -05:00
12 changed files with 161 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v0.11
description: DNS proxy as ad-blocker for local network
name: blocky
version: 4.1.0
version: 4.1.1
keywords:
- blocky
- dbs

View File

@@ -63,19 +63,19 @@ spec:
protocol: UDP
livenessProbe:
httpGet:
path: /metrics
path: /
port: api
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
readinessProbe:
httpGet:
path: /metrics
path: /
port: api
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
startupProbe:
httpGet:
path: /metrics
path: /
port: api
initialDelaySeconds: {{ .Values.probes.startup.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.startup.failureThreshold }}

View File

@@ -1,5 +1,3 @@
replicaCount: 1
image:
repository: spx01/blocky
tag: v0.11

View File

@@ -0,0 +1,23 @@
# 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
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

17
charts/neolink/Chart.yaml Normal file
View File

@@ -0,0 +1,17 @@
apiVersion: v2
appVersion: 0.3.0
description: Neolink - RTSP bridge to Reolink IP cameras
name: neolink
version: 1.0.0
keywords:
- reolink
- rtsp
home: https://github.com/k8s-at-home/charts/tree/master/charts/neolink
sources:
- https://github.com/thirtythreeforty/neolink
maintainers:
- name: mr-onion-2
dependencies:
- name: common
repository: https://k8s-at-home.com/charts/
version: 2.1.1

46
charts/neolink/README.md Normal file
View File

@@ -0,0 +1,46 @@
# Neolink
This is a helm chart for [Neolink](https://github.com/thirtythreeforty/neolink).
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose).**
## TL;DR;
```shell
$ helm repo add k8s-at-home https://k8s-at-home.com/charts/
$ helm install k8s-at-home/neolink
```
## Installing the Chart
To install the chart with the release name `my-release`:
```console
helm install my-release k8s-at-home/neolink
```
## Uninstalling the Chart
To uninstall/delete the `my-release` deployment:
```console
helm delete my-release --purge
```
The command removes all the Kubernetes components associated with the chart and deletes the release.
## Configuration
The chart's [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/neolink/values.yaml) file contains a set of suggested values for a minimal deployment. Further configuration options are found in the [common library](https://github.com/k8s-at-home/charts/blob/master/charts/common/values.yaml).
The configuration for the application itself is set as a configmap and mounted in the container as /etc/neolink.toml. Refer to the sample config [here.](https://github.com/thirtythreeforty/neolink/blob/master/sample_config.toml)
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```console
helm install neolink \
--set env.TZ="America/New_York" \
k8s-at-home/neolink
```
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
```console
helm install neolink k8s-at-home/neolink --values values.yaml
```

View File

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

View File

@@ -0,0 +1,31 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* Append the configMap to the additionalVolumes */}}
{{- define "neolink.configmap.volume" -}}
name: neolink-settings
configMap:
name: {{ template "common.names.fullname" . }}-settings
{{- end -}}
{{- $volume := include "neolink.configmap.volume" . | fromYaml -}}
{{- if $volume -}}
{{- $additionalVolumes := append .Values.additionalVolumes $volume }}
{{- $_ := set .Values "additionalVolumes" (deepCopy $additionalVolumes) -}}
{{- end -}}
{{/* Append the configMap volume to the additionalVolumeMounts */}}
{{- define "neolink.configmap.volumeMount" -}}
name: neolink-settings
mountPath: /etc/neolink.toml
subPath: neolink.toml
{{- end -}}
{{- $volumeMount := include "neolink.configmap.volumeMount" . | fromYaml -}}
{{- if $volumeMount -}}
{{- $additionalVolumeMounts := append .Values.additionalVolumeMounts $volumeMount }}
{{- $_ := set .Values "additionalVolumeMounts" (deepCopy $additionalVolumeMounts) -}}
{{- end -}}
{{/* Render the templates */}}
{{ include "common.all" . }}

View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "common.names.fullname" . }}-settings
labels:
{{- include "common.labels" . | nindent 4 }}
data:
neolink.toml:
{{- with .Values.config }}
{{- toYaml . | nindent 4 }}
{{- end }}

View File

@@ -0,0 +1,23 @@
# Default values for Neolink.
image:
repository: thirtythreeforty/neolink
pullPolicy: IfNotPresent
tag: latest
strategy:
type: Recreate
service:
port:
port: 8554
# Neolink configuration settings
# https://github.com/thirtythreeforty/neolink/blob/master/sample_config.toml
config: |
bind = "0.0.0.0"
[[cameras]]
name = "driveway"
username = "admin"
password = "12345678"
address = "192.168.1.187:9000"

View File

@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 2.7.0
description: Paperless - Index and archive all of your scanned paper documents
name: paperless
version: 2.2.1
version: 2.2.2
keywords:
- paperless
home: https://github.com/k8s-at-home/charts/tree/master/charts/paperless
@@ -11,7 +11,6 @@ sources:
- https://github.com/the-paperless-project/paperless
maintainers:
- name: mr-onion-2
email: securitybyte@hotmail.com
dependencies:
- name: common
repository: https://k8s-at-home.com/charts/

View File

@@ -1,8 +1,8 @@
# Paperless
This is a helm chart for [Paperless](https://github.com/the-paperless-project/paperless). The documentation can be found here [here](https://paperless.readthedocs.io/en/latest/index.html).
This is a helm chart for [Paperless](https://github.com/the-paperless-project/paperless). The documentation can be found [here](https://paperless.readthedocs.io/en/latest/index.html).
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose)**
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose).**
## TL;DR;
@@ -44,7 +44,7 @@ helm install paperless k8s-at-home/paperless --values values.yaml
```
## Backup & Restore
A more elegant solution will be added, but until then your document can be exported and re-imported by running the following commands directly on the pod. [More info](https://paperless.readthedocs.io/en/latest/migrating.html).
Documents can be exported and re-imported by running the following commands directly on the pod. [More info](https://paperless.readthedocs.io/en/latest/migrating.html).
Backup: `/usr/src/paperless/src/manage.py document_exporter /path/to/somewhere/`
Backup: `/usr/src/paperless/src/manage.py document_exporter /path/to/somewhere/`
Restore: `/usr/src/paperless/src/manage.py document_importer /path/to/somewhere/`