Compare commits

...

6 Commits

Author SHA1 Message Date
Patrick Collins
b3f339dd77 [youtubedl-material] new chart (#613) 2021-02-22 07:36:15 -05:00
Piotr Maksymiuk
22b8975741 [transmission] always use chart-defined config (#615)
* move from customconfig to transmissionConfig

* always use transmissionConfig

* update docs

* bump chart version

* this is an incompatible change

* update docs
2021-02-22 12:53:54 +01:00
rust84
628d8df6f4 [valheim] new chart (#605) 2021-02-21 18:48:57 -05:00
Piotr Maksymiuk
d9f263e2ee [transmission] add chart (#606) 2021-02-21 17:25:37 -05:00
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
9e4fd47bf8 [tests] Pin gem versions 2021-02-20 11:32:21 +01:00
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
fd53494429 [tests] Pre-install Gemfile in devcontainer 2021-02-20 10:04:56 +00:00
31 changed files with 1271 additions and 4 deletions

View File

@@ -6,14 +6,21 @@ FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT}
ENV DEBIAN_FRONTEND=noninteractive
COPY Gemfile /tmp/Gemfile
RUN \
apt-get update \
&& \
apt-get -y install --no-install-recommends \
jq \
libjq-dev \
libonig-dev \
gnupg2 \
&& \
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin \
&& \
curl -fsSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | /bin/bash -
curl -fsSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | /bin/bash - \
&& \
bundle config set system 'true' \
&& bundle install --gemfile /tmp/Gemfile \
&& rm /tmp/Gemfile

View File

@@ -3,6 +3,7 @@
{
"name": "Ruby",
"build": {
"context": "..",
"dockerfile": "Dockerfile",
"args": {
// Update 'VARIANT' to pick a Ruby version: 2, 2.7, 2.6, 2.5

View File

@@ -4,9 +4,9 @@ source 'https://rubygems.org'
group :test do
gem 'm'
gem 'minitest'
gem 'minitest', "5.14.2"
gem 'minitest-implicit-subject'
gem 'minitest-reporters'
gem 'pry'
gem 'minitest-reporters', "1.4.2"
gem 'pry', "0.13.1"
gem 'ruby-jq'
end

View File

@@ -0,0 +1,26 @@
# 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/
# OWNERS file for Kubernetes
OWNERS
# helm-docs templates
*.gotmpl

View File

@@ -0,0 +1,21 @@
apiVersion: v2
appVersion: 3.0.0
description: Transmission is a cross-platform BitTorrent client
name: transmission
version: 2.0.0
kubeVersion: ">=1.16.0-0"
keywords:
- transmission
- torrent
home: https://github.com/k8s-at-home/charts/tree/master/charts/transmission
icon: https://github.com/transmission/transmission/raw/master/extras/transmission-1920.jpg
sources:
- https://hub.docker.com/r/linuxserver/transmission
- https://github.com/k8s-at-home/charts/tree/master/charts/transmission
maintainers:
- name: ishioni
email: helm@movishell.pl
dependencies:
- name: common
repository: https://k8s-at-home.com/charts/
version: 3.0.1

View File

@@ -0,0 +1,8 @@
approvers:
- billimek
- onedr0p
- bjw-s
reviewers:
- billimek
- onedr0p
- bjw-s

View File

@@ -0,0 +1,211 @@
# transmission
![Version: 2.0.0](https://img.shields.io/badge/Version-2.0.0-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
Transmission is a cross-platform BitTorrent client
**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)**
## Source Code
* <https://hub.docker.com/r/linuxserver/transmission>
* <https://github.com/k8s-at-home/charts/tree/master/charts/transmission>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://k8s-at-home.com/charts/ | common | 3.0.1 |
## TL;DR
```console
helm repo add k8s-at-home https://k8s-at-home.com/charts/
helm repo update
helm install transmission k8s-at-home/transmission
```
## Installing the Chart
To install the chart with the release name `transmission`
```console
helm install transmission k8s-at-home/transmission
```
## Uninstalling the Chart
To uninstall the `transmission` deployment
```console
helm uninstall transmission
```
The command removes all the Kubernetes components associated with the chart **including persistent volumes** and deletes the release.
## Configuration
Read through the [values.yaml](./values.yaml) file. It has several commented out suggested values.
Other values may be used from the [values.yaml](../common/values.yaml) from the [common library](../common).
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
```console
helm install transmission \
--set env.TZ="America/New York" \
k8s-at-home/transmission
```
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
```console
helm install transmission k8s-at-home/transmission -f values.yaml
```
## Custom configuration
N/A
## Values
**Important**: When deploying an application Helm chart you can add more values from our common library chart [here](https://github.com/k8s-at-home/charts/tree/master/charts/common/)
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| env | object | `{}` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"linuxserver/transmission"` | |
| image.tag | string | `"version-3.00-r2"` | |
| ingress.enabled | bool | `false` | |
| persistence.config.emptyDir | bool | `false` | |
| persistence.config.enabled | bool | `false` | |
| persistence.config.mountPath | string | `"/config"` | |
| persistence.downloads.emptyDir | bool | `false` | |
| persistence.downloads.enabled | bool | `false` | |
| persistence.downloads.mountPath | string | `"/downloads"` | |
| persistence.watch.emptyDir | bool | `false` | |
| persistence.watch.enabled | bool | `false` | |
| persistence.watch.mountPath | string | `"/watch"` | |
| probes.liveness.spec.timeoutSeconds | int | `30` | |
| probes.readiness.spec.timeoutSeconds | int | `30` | |
| service.additionalServices[0].annotations | object | `{}` | |
| service.additionalServices[0].enabled | bool | `true` | |
| service.additionalServices[0].nameSuffix | string | `"utptcp"` | |
| service.additionalServices[0].port.name | string | `"utptcp"` | |
| service.additionalServices[0].port.port | int | `51413` | |
| service.additionalServices[0].port.protocol | string | `"TCP"` | |
| service.additionalServices[0].port.targetport | int | `51413` | |
| service.additionalServices[0].type | string | `"ClusterIP"` | |
| service.additionalServices[1].annotations | object | `{}` | |
| service.additionalServices[1].enabled | bool | `true` | |
| service.additionalServices[1].nameSuffix | string | `"utpudp"` | |
| service.additionalServices[1].port.name | string | `"utpudp"` | |
| service.additionalServices[1].port.port | int | `51413` | |
| service.additionalServices[1].port.protocol | string | `"UDP"` | |
| service.additionalServices[1].port.targetport | int | `51413` | |
| service.additionalServices[1].type | string | `"ClusterIP"` | |
| service.port.name | string | `"http"` | |
| service.port.port | int | `9091` | |
| strategy.type | string | `"Recreate"` | |
| transmissionConfig.alt-speed-down | int | `50` | |
| transmissionConfig.alt-speed-enabled | bool | `false` | |
| transmissionConfig.alt-speed-time-begin | int | `540` | |
| transmissionConfig.alt-speed-time-day | int | `127` | |
| transmissionConfig.alt-speed-time-enabled | bool | `false` | |
| transmissionConfig.alt-speed-time-end | int | `1020` | |
| transmissionConfig.alt-speed-up | int | `50` | |
| transmissionConfig.bind-address-ipv4 | string | `"0.0.0.0"` | |
| transmissionConfig.bind-address-ipv6 | string | `"::\""` | |
| transmissionConfig.blocklist-enabled | bool | `true` | |
| transmissionConfig.blocklist-url | string | `"http://john.bitsurge.net/public/biglist.p2p.gz"` | |
| transmissionConfig.cache-size-mb | int | `4` | |
| transmissionConfig.dht-enabled | bool | `true` | |
| transmissionConfig.download-dir | string | `"/downloads/complete"` | |
| transmissionConfig.download-queue-enabled | bool | `true` | |
| transmissionConfig.download-queue-size | int | `5` | |
| transmissionConfig.encryption | int | `1` | |
| transmissionConfig.idle-seeding-limit | int | `30` | |
| transmissionConfig.idle-seeding-limit-enabled | bool | `false` | |
| transmissionConfig.incomplete-dir | string | `"/downloads/incomplete"` | |
| transmissionConfig.incomplete-dir-enabled | bool | `true` | |
| transmissionConfig.lpd-enabled | bool | `false` | |
| transmissionConfig.message-level | int | `2` | |
| transmissionConfig.peer-congestion-algorithm | string | `""` | |
| transmissionConfig.peer-id-ttl-hours | int | `6` | |
| transmissionConfig.peer-limit-global | int | `200` | |
| transmissionConfig.peer-limit-per-torrent | int | `50` | |
| transmissionConfig.peer-port | int | `51413` | |
| transmissionConfig.peer-port-random-high | int | `65535` | |
| transmissionConfig.peer-port-random-low | int | `49152` | |
| transmissionConfig.peer-port-random-on-start | bool | `false` | |
| transmissionConfig.peer-socket-tos | string | `"default"` | |
| transmissionConfig.pex-enabled | bool | `true` | |
| transmissionConfig.port-forwarding-enabled | bool | `false` | |
| transmissionConfig.preallocation | int | `1` | |
| transmissionConfig.prefetch-enabled | bool | `true` | |
| transmissionConfig.queue-stalled-enabled | bool | `true` | |
| transmissionConfig.queue-stalled-minutes | int | `30` | |
| transmissionConfig.ratio-limit | int | `2` | |
| transmissionConfig.ratio-limit-enabled | bool | `false` | |
| transmissionConfig.rename-partial-files | bool | `true` | |
| transmissionConfig.rpc-authentication-required | bool | `false` | |
| transmissionConfig.rpc-bind-address | string | `"0.0.0.0"` | |
| transmissionConfig.rpc-enabled | bool | `true` | |
| transmissionConfig.rpc-host-whitelist | string | `""` | |
| transmissionConfig.rpc-host-whitelist-enabled | bool | `false` | |
| transmissionConfig.rpc-password | string | `"CHANGEME"` | |
| transmissionConfig.rpc-port | int | `9091` | |
| transmissionConfig.rpc-url | string | `"/transmission/"` | |
| transmissionConfig.rpc-username | string | `""` | |
| transmissionConfig.rpc-whitelist | string | `""` | |
| transmissionConfig.rpc-whitelist-enabled | bool | `false` | |
| transmissionConfig.scrape-paused-torrents-enabled | bool | `true` | |
| transmissionConfig.script-torrent-done-enabled | bool | `false` | |
| transmissionConfig.script-torrent-done-filename | string | `""` | |
| transmissionConfig.seed-queue-enabled | bool | `false` | |
| transmissionConfig.seed-queue-size | int | `10` | |
| transmissionConfig.speed-limit-down | int | `100` | |
| transmissionConfig.speed-limit-down-enabled | bool | `false` | |
| transmissionConfig.speed-limit-up | int | `100` | |
| transmissionConfig.speed-limit-up-enabled | bool | `false` | |
| transmissionConfig.start-added-torrents | bool | `true` | |
| transmissionConfig.trash-original-torrent-files | bool | `false` | |
| transmissionConfig.umask | int | `2` | |
| transmissionConfig.upload-slots-per-torrent | int | `14` | |
| transmissionConfig.utp-enabled | bool | `true` | |
| transmissionConfig.watch-dir | string | `"/watch"` | |
| transmissionConfig.watch-dir-enabled | bool | `false` | |
## Changelog
All notable changes to this application Helm chart will be documented in this file but does not include changes from our common library. To read those click [here](https://github.com/k8s-at-home/charts/tree/master/charts/common/README.md#Changelog).
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]
#### Changed
- customConfig became transmissionConfig and is always used
### [1.0.0]
#### Added
- Initial commit
[1.0.0]: #1.0.0
## Support
- See the [Wiki](https://github.com/k8s-at-home/charts/wiki)
- Open a [issue](https://github.com/k8s-at-home/charts/issues/new/choose)
- Ask a [question](https://github.com/k8s-at-home/charts/discussions)
- 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)

View File

@@ -0,0 +1,145 @@
{{- define "custom.repository.organization" -}}
k8s-at-home
{{- end -}}
{{- define "custom.repository.url" -}}
https://github.com/k8s-at-home/charts
{{- end -}}
{{- define "custom.helm.url" -}}
https://k8s-at-home.com/charts/
{{- end -}}
{{- define "custom.helm.path" -}}
{{ template "custom.repository.organization" . }}/{{ template "chart.name" . }}
{{- end -}}
{{- define "custom.notes" -}}
**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)**
{{- end -}}
{{- define "custom.requirements" -}}
## Requirements
{{ template "chart.kubeVersionLine" . }}
{{- end -}}
{{- define "custom.dependencies" -}}
## Dependencies
{{ template "chart.requirementsTable" . }}
{{- end -}}
{{- define "custom.install.tldr" -}}
## TL;DR
```console
helm repo add {{ template "custom.repository.organization" . }} {{ template "custom.helm.url" . }}
helm repo update
helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }}
```
{{- end -}}
{{- define "custom.install" -}}
## Installing the Chart
To install the chart with the release name `{{ template "chart.name" . }}`
```console
helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }}
```
{{- end -}}
{{- define "custom.uninstall" -}}
## Uninstalling the Chart
To uninstall the `{{ template "chart.name" . }}` deployment
```console
helm uninstall {{ template "chart.name" . }}
```
The command removes all the Kubernetes components associated with the chart **including persistent volumes** and deletes the release.
{{- end -}}
{{- define "custom.configuration.header" -}}
## Configuration
{{- end -}}
{{- define "custom.configuration.readValues" -}}
Read through the [values.yaml](./values.yaml) file. It has several commented out suggested values.
Other values may be used from the [values.yaml](../common/values.yaml) from the [common library](../common).
{{- end -}}
{{- define "custom.configuration.example.set" -}}
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
```console
helm install {{ template "chart.name" . }} \
--set env.TZ="America/New York" \
{{ template "custom.helm.path" . }}
```
{{- end -}}
{{- define "custom.configuration.example.file" -}}
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
```console
helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }} -f values.yaml
```
{{- end -}}
{{- define "custom.valuesSection" -}}
## Values
**Important**: When deploying an application Helm chart you can add more values from our common library chart [here](https://github.com/k8s-at-home/charts/tree/master/charts/common/)
{{ template "chart.valuesTable" . }}
{{- end -}}
{{- define "custom.support" -}}
## Support
- See the [Wiki](https://github.com/k8s-at-home/charts/wiki)
- Open a [issue](https://github.com/k8s-at-home/charts/issues/new/choose)
- Ask a [question](https://github.com/k8s-at-home/charts/discussions)
- Join our [Discord](https://discord.gg/sTMX7Vh) community
{{- end -}}
{{ template "chart.header" . }}
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
{{ template "chart.description" . }}
{{ template "custom.notes" . }}
{{ template "chart.sourcesSection" . }}
{{ template "custom.requirements" . }}
{{ template "custom.dependencies" . }}
{{ template "custom.install.tldr" . }}
{{ template "custom.install" . }}
{{ template "custom.uninstall" . }}
{{ template "custom.configuration.header" . }}
{{ template "custom.configuration.readValues" . }}
{{ template "custom.configuration.example.set" . }}
{{ template "custom.configuration.example.file" . }}
{{ template "custom.custom.configuration" . }}
{{ template "custom.valuesSection" . }}
{{ template "custom.changelog" . }}
{{ template "custom.support" . }}
{{ template "helm-docs.versionFooter" . }}

View File

@@ -0,0 +1,25 @@
{{- define "custom.changelog.header" -}}
## Changelog
{{- end -}}
{{- define "custom.changelog" -}}
{{ template "custom.changelog.header" . }}
All notable changes to this application Helm chart will be documented in this file but does not include changes from our common library. To read those click [here](https://github.com/k8s-at-home/charts/tree/master/charts/common/README.md#Changelog).
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]
#### Changed
- customConfig became transmissionConfig and is always used
### [1.0.0]
#### Added
- Initial commit
[1.0.0]: #1.0.0
{{- end -}}

View File

@@ -0,0 +1,9 @@
{{- define "custom.custom.configuration.header" -}}
## Custom configuration
{{- end -}}
{{- define "custom.custom.configuration" -}}
{{ template "custom.custom.configuration.header" . }}
N/A
{{- end -}}

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 "transmission.configmap.volume" -}}
name: transmission-settings
configMap:
name: {{ template "common.names.fullname" . }}-config
{{- end -}}
{{- $volume := include "transmission.configmap.volume" . | fromYaml -}}
{{- if $volume -}}
{{- $additionalVolumes := append .Values.additionalVolumes $volume }}
{{- $_ := set .Values "additionalVolumes" (deepCopy $additionalVolumes) -}}
{{- end -}}
{{/* Append the configMap volume to the additionalVolumeMounts */}}
{{- define "transmission.configmap.volumeMount" -}}
name: transmission-settings
mountPath: /config/settings.json
subPath: settings.json
{{- end -}}
{{- $volumeMount := include "transmission.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,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "common.names.fullname" . }}-config
labels:
{{- include "common.labels" . | nindent 4 }}
data:
settings.json: |
{{- .Values.transmissionConfig | mustToPrettyJson | nindent 4 }}

View File

@@ -0,0 +1,170 @@
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/charts/tree/master/charts/common/values.yaml
#
image:
repository: linuxserver/transmission
pullPolicy: IfNotPresent
tag: version-3.00-r2
strategy:
type: Recreate
# See more environment variables in the transmission documentation
# https://hub.docker.com/r/linuxserver/transmission
env: {}
# PUID: 1000
# PGID: 1000
# TZ: UTC
service:
port:
port: 9091
name: http
additionalServices:
- enabled: true
nameSuffix: utptcp
type: ClusterIP
annotations: {}
port:
port: 51413
name: utptcp
protocol: TCP
targetport: 51413
- enabled: true
nameSuffix: utpudp
type: ClusterIP
annotations: {}
port:
port: 51413
name: utpudp
protocol: UDP
targetport: 51413
## transmission runs the gui and io on the same thread - heavy bandwith usage
## may stall the UI and result in restarts.
probes:
liveness:
spec:
timeoutSeconds: 30
readiness:
spec:
timeoutSeconds: 30
ingress:
enabled: false
# annotations: {}
# hosts:
# - host: example.com
# paths:
# - path: /
# pathType: Prefix
# tls:
# - secretName: example.com
# hosts:
# - example.com
persistence:
## Directory for storing active torrent files, resume list,
## blocklists and DHT peers
config:
enabled: false
emptyDir: false
mountPath: /config
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
# storageClass: "-"
# accessMode: ReadWriteOnce
# size: 100Mi
## Do not delete the pvc upon helm uninstall
# skipuninstall: false
# existingClaim: ""
downloads:
enabled: false
emptyDir: false
mountPath: /downloads
watch:
enabled: false
emptyDir: false
mountPath: /watch
transmissionConfig:
alt-speed-down: 50
alt-speed-enabled: false
alt-speed-time-begin: 540
alt-speed-time-day: 127
alt-speed-time-enabled: false
alt-speed-time-end: 1020
alt-speed-up: 50
bind-address-ipv4: "0.0.0.0"
bind-address-ipv6: ::"
blocklist-enabled: true
blocklist-url: "http://john.bitsurge.net/public/biglist.p2p.gz"
cache-size-mb: 4
dht-enabled: true
download-dir: "/downloads/complete"
download-queue-enabled: true
download-queue-size: 5
encryption: 1
idle-seeding-limit: 30
idle-seeding-limit-enabled: false
incomplete-dir: "/downloads/incomplete"
incomplete-dir-enabled: true
lpd-enabled: false
message-level: 2
peer-congestion-algorithm: ""
peer-id-ttl-hours: 6
peer-limit-global: 200
peer-limit-per-torrent: 50
peer-port: 51413
peer-port-random-high: 65535
peer-port-random-low: 49152
peer-port-random-on-start: false
peer-socket-tos: "default"
pex-enabled: true
port-forwarding-enabled: false
preallocation: 1
prefetch-enabled: true
queue-stalled-enabled: true
queue-stalled-minutes: 30
ratio-limit: 2
ratio-limit-enabled: false
rename-partial-files: true
rpc-authentication-required: false
rpc-bind-address: "0.0.0.0"
rpc-enabled: true
rpc-host-whitelist: ""
rpc-host-whitelist-enabled: false
rpc-password: "CHANGEME"
rpc-port: 9091
rpc-url: "/transmission/"
rpc-username: ""
rpc-whitelist: ""
rpc-whitelist-enabled: false
scrape-paused-torrents-enabled: true
script-torrent-done-enabled: false
script-torrent-done-filename: ""
seed-queue-enabled: false
seed-queue-size: 10
speed-limit-down: 100
speed-limit-down-enabled: false
speed-limit-up: 100
speed-limit-up-enabled: false
start-added-torrents: true
trash-original-torrent-files: false
umask: 2
upload-slots-per-torrent: 14
utp-enabled: true
watch-dir: "/watch"
watch-dir-enabled: false

View File

@@ -0,0 +1,24 @@
# 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/
# OWNERS file for Kubernetes
OWNERS

20
charts/valheim/Chart.yaml Normal file
View File

@@ -0,0 +1,20 @@
apiVersion: v2
appVersion: latest
description: Valheim dedicated gameserver with automatic update and world backup support
name: valheim
version: 1.0.0
kubeVersion: ">=1.16.0-0"
keywords:
- valheim
home: https://github.com/k8s-at-home/charts/tree/master/charts/valheim
icon: https://raw.githubusercontent.com/lloesche/valheim-server-docker/main/misc/Logo_valheim.png
sources:
- https://github.com/lloesche/valheim-server-docker
- https://hub.docker.com/r/lloesche/valheim-server
maintainers:
- name: rust84
email: owner@russellhall.co.uk
dependencies:
- name: common
repository: https://k8s-at-home.com/charts/
version: 3.0.1

8
charts/valheim/OWNERS Normal file
View File

@@ -0,0 +1,8 @@
approvers:
- billimek
- onedr0p
- bjw-s
reviewers:
- billimek
- onedr0p
- bjw-s

67
charts/valheim/README.md Normal file
View File

@@ -0,0 +1,67 @@
# valheim
This is a helm chart for [Valheim-server-docker](https://github.com/lloesche/valheim-server-docker).
**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/valheim
```
## Installing the Chart
To install the chart with the release name `my-release`:
```console
helm install --name my-release k8s-at-home/valheim
```
## 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
Read through the charts [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/valheim/values.yaml)
file. It has several commented out suggested values.
Additionally you can take a look at the common library [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/common/values.yaml) for more (advanced) configuration options.
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```console
helm install valheim \
--set env.SERVER_NAME="My Server" \
k8s-at-home/valheim
```
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the
chart. For example,
```console
helm install valheim k8s-at-home/valheim --values values.yaml
```
```yaml
image:
tag: ...
```
---
**NOTE**
If you get
```console
Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: ...`
```
it may be because you uninstalled the chart with `skipuninstall` enabled, you need to manually delete the pvc or use `existingClaim`.
---
## Upgrading an existing Release to a new major version
A major chart version change (like 4.0.1 -> 5.0.0) indicates that there is an incompatible breaking change potentially needing manual actions.

View File

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

View File

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

View File

@@ -0,0 +1,66 @@
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/charts/tree/master/charts/common/values.yaml
#
image:
repository: lloesche/valheim-server
pullPolicy: IfNotPresent
tag: latest
strategy:
type: Recreate
## See more environment varaibles in the valheim-server-docker documentation
# https://github.com/lloesche/valheim-server-docker#environment-variables
env: {}
# SERVER_NAME: My Server
# SERVER_PORT: 2456
# WORLD_NAME: Dedicated
# SERVER_PASS: secret
# SERVER_PUBLIC: 1
# UPDATE_INTERVAL: 10800 # every 3 hours
# BACKUPS: true
# BACKUPS_INTERVAL: 43200 # every 12 hours
# BACKUPS_DIRECTORY: /config/backups
# BACKUPS_MAX_AGE: 3
# BACKUPS_DIRECTORY_PERMISSIONS: 755
# BACKUPS_FILE_PERMISSIONS: 644
# CONFIG_DIRECTORY_PERMISSIONS: 755
# WORLDS_DIRECTORY_PERMISSIONS: 755
# WORLDS_FILE_PERMISSIONS: 644
# STEAMCMD_ARGS: validate
# DNS_1: 8.8.8.8
# DNS_2: 8.8.4.4
service:
type: LoadBalancer
externalTrafficPolicy: Cluster
loadBalancerIP:
port:
port: 2456
protocol: UDP
additionalPorts:
- name: valheim-2
port: 2457
protocol: UDP
targetPort: 2457
- name: valheim-3
port: 2458
protocol: UDP
targetPort: 2458
persistence:
config:
enabled: false
mountPath: /config
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false

View File

@@ -0,0 +1,26 @@
# 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/
# OWNERS file for Kubernetes
OWNERS
# helm-docs templates
*.gotmpl

View File

@@ -0,0 +1,19 @@
apiVersion: v2
appVersion: "4.2"
description: Self-hosted YouTube downloader built on Material Design
name: youtubedl-material
version: 1.0.0
kubeVersion: ">=1.16.0-0"
keywords:
- youtubedl-material
home: https://github.com/k8s-at-home/charts/tree/master/charts/youtubedl-material
sources:
- https://github.com/Tzahi12345/YoutubeDL-Material
- https://github.com/k8s-at-home/charts/tree/master/charts/youtubedl-material
maintainers:
- name: Patricol
url: https://patricol.co/
dependencies:
- name: common
repository: https://k8s-at-home.com/charts/
version: 3.0.1

View File

@@ -0,0 +1,10 @@
approvers:
- billimek
- onedr0p
- bjw-s
- Patricol
reviewers:
- billimek
- onedr0p
- bjw-s
- Patricol

View File

@@ -0,0 +1,130 @@
# youtubedl-material
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 4.2](https://img.shields.io/badge/AppVersion-4.2-informational?style=flat-square)
Self-hosted YouTube downloader built on Material Design
**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)**
## Source Code
* <https://github.com/Tzahi12345/YoutubeDL-Material>
* <https://github.com/k8s-at-home/charts/tree/master/charts/youtubedl-material>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://k8s-at-home.com/charts/ | common | 3.0.1 |
## TL;DR
```console
helm repo add k8s-at-home https://k8s-at-home.com/charts/
helm repo update
helm install youtubedl-material k8s-at-home/youtubedl-material
```
## Installing the Chart
To install the chart with the release name `youtubedl-material`
```console
helm install youtubedl-material k8s-at-home/youtubedl-material
```
## Uninstalling the Chart
To uninstall the `youtubedl-material` deployment
```console
helm uninstall youtubedl-material
```
The command removes all the Kubernetes components associated with the chart **including persistent volumes** and deletes the release.
## Configuration
Read through the [values.yaml](./values.yaml) file. It has several commented out suggested values.
Other values may be used from the [values.yaml](../common/values.yaml) from the [common library](../common).
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
```console
helm install youtubedl-material \
--set env.TZ="America/New York" \
k8s-at-home/youtubedl-material
```
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
```console
helm install youtubedl-material k8s-at-home/youtubedl-material -f values.yaml
```
## Custom configuration
N/A
## Values
**Important**: When deploying an application Helm chart you can add more values from our common library chart [here](https://github.com/k8s-at-home/charts/tree/master/charts/common/)
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| env | object | `{}` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"tzahi12345/youtubedl-material"` | |
| image.tag | float | `4.2` | |
| ingress.enabled | bool | `false` | |
| persistence.audio.emptyDir | bool | `false` | |
| persistence.audio.enabled | bool | `false` | |
| persistence.audio.mountPath | string | `"/app/audio"` | |
| persistence.config.emptyDir | bool | `false` | |
| persistence.config.enabled | bool | `false` | |
| persistence.config.mountPath | string | `"/app/appdata"` | |
| persistence.subscriptions.emptyDir | bool | `false` | |
| persistence.subscriptions.enabled | bool | `false` | |
| persistence.subscriptions.mountPath | string | `"/subscriptions"` | |
| persistence.users.emptyDir | bool | `false` | |
| persistence.users.enabled | bool | `false` | |
| persistence.users.mountPath | string | `"/users"` | |
| persistence.video.emptyDir | bool | `false` | |
| persistence.video.enabled | bool | `false` | |
| persistence.video.mountPath | string | `"/video"` | |
| service.port.port | int | `17442` | |
| strategy.type | string | `"Recreate"` | |
## Changelog
All notable changes to this application Helm chart will be documented in this file but does not include changes from our common library. To read those click [here](https://github.com/k8s-at-home/charts/tree/master/charts/common/README.md#Changelog).
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).
### [1.0.0]
#### Added
- N/A
#### Changed
- N/A
#### Removed
- N/A
[1.0.0]: #1.0.0
## Support
- See the [Wiki](https://github.com/k8s-at-home/charts/wiki)
- Open a [issue](https://github.com/k8s-at-home/charts/issues/new/choose)
- Ask a [question](https://github.com/k8s-at-home/charts/discussions)
- Join our [Discord](https://discord.gg/sTMX7Vh) community

View File

@@ -0,0 +1,145 @@
{{- define "custom.repository.organization" -}}
k8s-at-home
{{- end -}}
{{- define "custom.repository.url" -}}
https://github.com/k8s-at-home/charts
{{- end -}}
{{- define "custom.helm.url" -}}
https://k8s-at-home.com/charts/
{{- end -}}
{{- define "custom.helm.path" -}}
{{ template "custom.repository.organization" . }}/{{ template "chart.name" . }}
{{- end -}}
{{- define "custom.notes" -}}
**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)**
{{- end -}}
{{- define "custom.requirements" -}}
## Requirements
{{ template "chart.kubeVersionLine" . }}
{{- end -}}
{{- define "custom.dependencies" -}}
## Dependencies
{{ template "chart.requirementsTable" . }}
{{- end -}}
{{- define "custom.install.tldr" -}}
## TL;DR
```console
helm repo add {{ template "custom.repository.organization" . }} {{ template "custom.helm.url" . }}
helm repo update
helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }}
```
{{- end -}}
{{- define "custom.install" -}}
## Installing the Chart
To install the chart with the release name `{{ template "chart.name" . }}`
```console
helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }}
```
{{- end -}}
{{- define "custom.uninstall" -}}
## Uninstalling the Chart
To uninstall the `{{ template "chart.name" . }}` deployment
```console
helm uninstall {{ template "chart.name" . }}
```
The command removes all the Kubernetes components associated with the chart **including persistent volumes** and deletes the release.
{{- end -}}
{{- define "custom.configuration.header" -}}
## Configuration
{{- end -}}
{{- define "custom.configuration.readValues" -}}
Read through the [values.yaml](./values.yaml) file. It has several commented out suggested values.
Other values may be used from the [values.yaml](../common/values.yaml) from the [common library](../common).
{{- end -}}
{{- define "custom.configuration.example.set" -}}
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
```console
helm install {{ template "chart.name" . }} \
--set env.TZ="America/New York" \
{{ template "custom.helm.path" . }}
```
{{- end -}}
{{- define "custom.configuration.example.file" -}}
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
```console
helm install {{ template "chart.name" . }} {{ template "custom.helm.path" . }} -f values.yaml
```
{{- end -}}
{{- define "custom.valuesSection" -}}
## Values
**Important**: When deploying an application Helm chart you can add more values from our common library chart [here](https://github.com/k8s-at-home/charts/tree/master/charts/common/)
{{ template "chart.valuesTable" . }}
{{- end -}}
{{- define "custom.support" -}}
## Support
- See the [Wiki](https://github.com/k8s-at-home/charts/wiki)
- Open a [issue](https://github.com/k8s-at-home/charts/issues/new/choose)
- Ask a [question](https://github.com/k8s-at-home/charts/discussions)
- Join our [Discord](https://discord.gg/sTMX7Vh) community
{{- end -}}
{{ template "chart.header" . }}
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
{{ template "chart.description" . }}
{{ template "custom.notes" . }}
{{ template "chart.sourcesSection" . }}
{{ template "custom.requirements" . }}
{{ template "custom.dependencies" . }}
{{ template "custom.install.tldr" . }}
{{ template "custom.install" . }}
{{ template "custom.uninstall" . }}
{{ template "custom.configuration.header" . }}
{{ template "custom.configuration.readValues" . }}
{{ template "custom.configuration.example.set" . }}
{{ template "custom.configuration.example.file" . }}
{{ template "custom.custom.configuration" . }}
{{ template "custom.valuesSection" . }}
{{ template "custom.changelog" . }}
{{ template "custom.support" . }}
{{ template "helm-docs.versionFooter" . }}

View File

@@ -0,0 +1,27 @@
{{- define "custom.changelog.header" -}}
## Changelog
{{- end -}}
{{- define "custom.changelog" -}}
{{ template "custom.changelog.header" . }}
All notable changes to this application Helm chart will be documented in this file but does not include changes from our common library. To read those click [here](https://github.com/k8s-at-home/charts/tree/master/charts/common/README.md#Changelog).
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).
### [1.0.0]
#### Added
- N/A
#### Changed
- N/A
#### Removed
- N/A
[1.0.0]: #1.0.0
{{- end -}}

View File

@@ -0,0 +1,9 @@
{{- define "custom.custom.configuration.header" -}}
## Custom configuration
{{- end -}}
{{- define "custom.custom.configuration" -}}
{{ template "custom.custom.configuration.header" . }}
N/A
{{- end -}}

View File

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

View File

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

View File

@@ -0,0 +1,48 @@
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/charts/tree/master/charts/common/values.yaml
#
image:
repository: tzahi12345/youtubedl-material
pullPolicy: IfNotPresent
tag: 4.2
strategy:
type: Recreate
env: {}
# TZ:
# UID:
# GID:
service:
port:
port: 17442
ingress:
enabled: false
persistence:
config:
enabled: false
emptyDir: false
mountPath: /app/appdata
audio:
enabled: false
emptyDir: false
mountPath: /app/audio
subscriptions:
enabled: false
emptyDir: false
mountPath: /subscriptions
users:
enabled: false
emptyDir: false
mountPath: /users
video:
enabled: false
emptyDir: false
mountPath: /video