Compare commits

...

5 Commits

Author SHA1 Message Date
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
dfa264038d [smarter-device-manager] Bump app, update chart features (#918)
* Bump version

* Clean up chart

* Fix pre-commit issues
2021-05-19 07:41:46 -04:00
ᗪєνιη ᗷυнʟ
1340f023f9 fix: adguard-home work-dir (#917) 2021-05-18 08:33:57 -04:00
Ryan Walter
7464125591 [FounderyVTT] Adding new chart, Founderyvtt (#916)
* Adding new chart, Founderyvtt

Signed-off-by: Ryan Walter <rwalt@pm.me>

* regened docs

Signed-off-by: Ryan Walter <rwalt@pm.me>

* regened docs

Signed-off-by: Ryan Walter <rwalt@pm.me>

* regened docs

Signed-off-by: Ryan Walter <rwalt@pm.me>

* added exclusion to CT

Signed-off-by: Ryan Walter <rwalt@pm.me>
2021-05-18 08:13:23 -04:00
ᗪєνιη ᗷυнʟ
862c1c75d7 [stash] set stash port envar (#915)
* fix: set stash port envar

* fix: bump chart version

* fix: set stash port in ct-values
2021-05-17 10:23:59 -04:00
renovate[bot]
30fd19148f chore(deps): update helm chart common to v2.5.0 (#913)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-15 19:42:42 -04:00
27 changed files with 485 additions and 113 deletions

View File

@@ -13,6 +13,7 @@ excluded-charts:
- charts/stable/ser2sock
- charts/stable/zalando-postgres-cluster
- charts/stable/zigbee2mqtt
- charts/stable/founderyvtt
chart-repos:
- bitnami=https://charts.bitnami.com/bitnami
- k8s-at-home-libraries=https://library-charts.k8s-at-home.com

View File

@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v0.105.2
description: DNS proxy as ad-blocker for local network
name: adguard-home
version: 3.3.0
version: 3.3.1
kubeVersion: ">=1.16.0-0"
keywords:
- adguard-home

View File

@@ -1,6 +1,6 @@
# adguard-home
![Version: 3.1.1](https://img.shields.io/badge/Version-3.1.1-informational?style=flat-square) ![AppVersion: v0.105.2](https://img.shields.io/badge/AppVersion-v0.105.2-informational?style=flat-square)
![Version: 3.3.1](https://img.shields.io/badge/Version-3.3.1-informational?style=flat-square) ![AppVersion: v0.105.2](https://img.shields.io/badge/AppVersion-v0.105.2-informational?style=flat-square)
DNS proxy as ad-blocker for local network
@@ -18,7 +18,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
@@ -77,7 +77,9 @@ N/A
|-----|------|---------|-------------|
| args[0] | string | `"--config"` | |
| args[1] | string | `"/opt/adguardhome/conf/AdGuardHome.yaml"` | |
| args[2] | string | `"--no-check-update"` | |
| args[2] | string | `"--work-dir"` | |
| args[3] | string | `"/opt/adguardhome/work"` | |
| args[4] | string | `"--no-check-update"` | |
| config | string | `"bind_host: 0.0.0.0\nbind_port: 3000\nbeta_bind_port: 0\nusers: []\nhttp_proxy: \"\"\nlanguage: en\nrlimit_nofile: 0\ndebug_pprof: false\nweb_session_ttl: 720\ndns:\n bind_host: 0.0.0.0\n port: 53\n statistics_interval: 1\n querylog_enabled: true\n querylog_file_enabled: true\n querylog_interval: 90\n querylog_size_memory: 1000\n anonymize_client_ip: false\n protection_enabled: true\n blocking_mode: default\n blocking_ipv4: \"\"\n blocking_ipv6: \"\"\n blocked_response_ttl: 10\n parental_block_host: family-block.dns.adguard.com\n safebrowsing_block_host: standard-block.dns.adguard.com\n ratelimit: 0\n ratelimit_whitelist: []\n refuse_any: true\n upstream_dns:\n - https://dns10.quad9.net/dns-query\n upstream_dns_file: \"\"\n bootstrap_dns:\n - 9.9.9.10\n - 149.112.112.10\n - 2620:fe::10\n - 2620:fe::fe:10\n all_servers: false\n fastest_addr: false\n allowed_clients: []\n disallowed_clients: []\n blocked_hosts: []\n cache_size: 4194304\n cache_ttl_min: 0\n cache_ttl_max: 0\n bogus_nxdomain: []\n aaaa_disabled: false\n enable_dnssec: false\n edns_client_subnet: false\n max_goroutines: 300\n ipset: []\n filtering_enabled: true\n filters_update_interval: 24\n parental_enabled: false\n safesearch_enabled: false\n safebrowsing_enabled: false\n safebrowsing_cache_size: 1048576\n safesearch_cache_size: 1048576\n parental_cache_size: 1048576\n cache_time: 30\n rewrites: []\n blocked_services: []\n customresolver: null\ntls:\n enabled: false\n server_name: \"\"\n force_https: false\n port_https: 443\n port_dns_over_tls: 853\n port_dns_over_quic: 784\n port_dnscrypt: 0\n dnscrypt_config_file: \"\"\n allow_unencrypted_doh: false\n strict_sni_check: false\n certificate_chain: \"\"\n private_key: \"\"\n certificate_path: \"\"\n private_key_path: \"\"\nfilters:\n- enabled: true\n url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt\n name: AdGuard DNS filter\n id: 1\n- enabled: false\n url: https://adaway.org/hosts.txt\n name: AdAway\n id: 2\n- enabled: false\n url: https://www.malwaredomainlist.com/hostslist/hosts.txt\n name: MalwareDomainList.com Hosts List\n id: 4\nwhitelist_filters: []\nuser_rules: []\ndhcp:\n enabled: false\n interface_name: \"\"\n dhcpv4:\n gateway_ip: \"\"\n subnet_mask: \"\"\n range_start: \"\"\n range_end: \"\"\n lease_duration: 86400\n icmp_timeout_msec: 1000\n options: []\n dhcpv6:\n range_start: \"\"\n lease_duration: 86400\n ra_slaac_only: false\n ra_allow_slaac: false\nclients: []\nlog_compress: false\nlog_localtime: false\nlog_max_backups: 0\nlog_max_size: 100\nlog_max_age: 3\nlog_file: \"\"\nverbose: false\nschema_version: 7\n"` | |
| env | object | `{}` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
@@ -113,6 +115,12 @@ 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).
### [3.3.1]
#### Changed
- Updated `work-dir` arg to point to the correct directory within the container
### [3.0.0]
#### Added
@@ -127,6 +135,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[3.3.1]: #3.3.1
[3.0.0]: #3.0.0
## 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,12 @@ 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).
### [3.3.1]
#### Changed
- Updated `work-dir` arg to point to the correct directory within the container
### [3.0.0]
#### Added
@@ -23,5 +29,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[3.3.1]: #3.3.1
[3.0.0]: #3.0.0
{{- end -}}

View File

@@ -41,6 +41,8 @@ env: {}
args:
- "--config"
- "/opt/adguardhome/conf/AdGuardHome.yaml"
- "--work-dir"
- "/opt/adguardhome/work"
- "--no-check-update"
# -- (int) Number of pods to load balance between
@@ -104,7 +106,7 @@ prometheus:
# prometheus.io/port: "api"
# -- Full list of options https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration
# @default -- see URL to default config
# @default -- string
config: |
bind_host: 0.0.0.0
bind_port: 3000

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: 0.8.3
description: An easy-to-deploy Dockerized Foundry Virtual Tabletop server
name: foundryvtt
version: 0.8.3
kubeVersion: ">=1.16.0-0"
keywords:
- foundryvtt
home: https://github.com/felddy/foundryvtt-docker
icon: https://raw.githubusercontent.com/felddy/foundryvtt-docker/develop/assets/logo.png
sources:
- https://github.com/felddy/foundryvtt-docker
maintainers:
- name: rwaltr
email: rwalt@pm.me
dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com
version: 2.5.0

View File

@@ -0,0 +1,119 @@
# foundryvtt
![Version: 0.8.3](https://img.shields.io/badge/Version-0.8.3-informational?style=flat-square) ![AppVersion: 0.8.3](https://img.shields.io/badge/AppVersion-0.8.3-informational?style=flat-square)
An easy-to-deploy Dockerized Foundry Virtual Tabletop server
**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/felddy/foundryvtt-docker>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://library-charts.k8s-at-home.com | common | 2.5.0 |
## TL;DR
```console
helm repo add k8s-at-home https://k8s-at-home.com/charts/
helm repo update
helm install foundryvtt k8s-at-home/foundryvtt
```
## Installing the Chart
To install the chart with the release name `foundryvtt`
```console
helm install foundryvtt k8s-at-home/foundryvtt
```
## Uninstalling the Chart
To uninstall the `foundryvtt` deployment
```console
helm uninstall foundryvtt
```
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](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml) from the [common library](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common).
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
```console
helm install foundryvtt \
--set env.TZ="America/New York" \
k8s-at-home/foundryvtt
```
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
```console
helm install foundryvtt k8s-at-home/foundryvtt -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/library-charts/tree/main/charts/stable/common)
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| env | object | `{}` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"felddy/foundryvtt"` | |
| image.tag | string | `"0.8.3"` | |
| ingress.enabled | bool | `false` | |
| persistence.data.emptyDir.enabled | bool | `false` | |
| persistence.data.enabled | bool | `false` | |
| persistence.data.mountPath | string | `"/data"` | |
| service.port.port | int | `30000` | |
| 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/library-charts/tree/main/charts/stable/common#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
- Initial version
#### Changed
- N/A
#### Removed
- N/A
[1.0.0]: #1.0.0
## Support
- See the [Docs](https://docs.k8s-at-home.com/our-helm-charts/getting-started/)
- Open an [issue](https://github.com/k8s-at-home/charts/issues/new/choose)
- Ask a [question](https://github.com/k8s-at-home/organization/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,146 @@
{{- 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](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml) from the [common library](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/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/library-charts/tree/main/charts/stable/common)
{{ template "chart.valuesTable" . }}
{{- end -}}
{{- define "custom.support" -}}
## Support
- See the [Docs](https://docs.k8s-at-home.com/our-helm-charts/getting-started/)
- Open an [issue](https://github.com/k8s-at-home/charts/issues/new/choose)
- Ask a [question](https://github.com/k8s-at-home/organization/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/library-charts/tree/main/charts/stable/common#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
- Initial version
#### 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,36 @@
#
# 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: felddy/foundryvtt
pullPolicy: IfNotPresent
tag: 0.8.3
strategy:
type: Recreate
# See more environment variables in the foundryvtt documentation
# https://github.com/felddy/foundryvtt-docker#environment-variables
env: {}
# TZ:
service:
port:
port: 30000
ingress:
enabled: false
# Founderyvtt is hardcoded to use /data for its persistance for config and
persistence:
data:
enabled: false
emptyDir:
enabled: false
mountPath: /data

View File

@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v3.7.1
description: multus CNI allows multiple NICs per pod
name: multus
version: 1.0.0
version: 1.1.0
kubeVersion: ">=1.16.0-0"
keywords:
- multus
@@ -16,4 +16,4 @@ maintainers:
dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com
version: 2.4.0
version: 2.5.0

View File

@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: 1.1.2
appVersion: 1.20.7
description: Manage hardware resource allocation without a need for privileged containers
name: smarter-device-manager
version: 3.4.0
version: 4.0.0
kubeVersion: ">=1.16.0-0"
keywords:
- kubernetes

View File

@@ -1,6 +1,6 @@
# smarter-device-manager
![Version: 3.3.2](https://img.shields.io/badge/Version-3.3.2-informational?style=flat-square) ![AppVersion: 1.1.2](https://img.shields.io/badge/AppVersion-1.1.2-informational?style=flat-square)
![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) ![AppVersion: 1.20.7](https://img.shields.io/badge/AppVersion-1.20.7-informational?style=flat-square)
Manage hardware resource allocation without a need for privileged containers
@@ -19,7 +19,7 @@ Kubernetes: `>=1.16.0-0`
| Repository | Name | Version |
|------------|------|---------|
| https://library-charts.k8s-at-home.com | common | 2.3.1 |
| https://library-charts.k8s-at-home.com | common | 2.5.0 |
## TL;DR
@@ -71,7 +71,7 @@ helm install smarter-device-manager k8s-at-home/smarter-device-manager -f values
Please consider overriding the default configuration through `values.yaml` file.
For example:
```yaml
config:
config: |
- devicematch: ^snd$
nummaxdevices: 20
- devicematch: ^rtc0$
@@ -98,8 +98,6 @@ Capacity:
smarter-devices/ttyUSB-Z-Stick-Gen5: 1
```
Please note that only the root of the host `/dev` directory is considered for discovery. _Therefore, `by-id` paths will not work and some `udev` rules may be necessary._
The hardware is requested by pods through `resources`, e.g.:
```yaml
resources:
@@ -117,15 +115,15 @@ In this case host device `/dev/ttyUSB-Conbee-2` will be given at the same path,
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| devicePluginPath | string | `"/var/lib/kubelet/device-plugins"` | |
| config | string | Refer to values.yaml | Override default configuration See [project repo](https://gitlab.com/arm-research/smarter/smarter-device-manager) for configuration examples |
| dnsPolicy | string | `"ClusterFirstWithHostNet"` | |
| hostNetwork | bool | `true` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"registry.gitlab.com/arm-research/smarter/smarter-device-manager"` | |
| image.tag | string | `"v1.1.2"` | |
| priorityClassName | string | `"system-node-critical"` | |
| securityContext.allowPrivilegeEscalation | bool | `false` | |
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
| hostPathMounts | list | Refer to values.yaml | Configures the host paths that are mapped through to the container |
| image.pullPolicy | string | `"IfNotPresent"` | Configure the image pull policy |
| image.repository | string | `"registry.gitlab.com/arm-research/smarter/smarter-device-manager"` | Configure the image |
| image.tag | string | `"v1.20.7"` | Configure the image tag |
| priorityClassName | string | `"system-node-critical"` | Setting priority class is not necessary, but is recommended. [[Ref]](https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/) |
| securityContext | object | Refer to values.yaml | Configure the securityContext for this pod |
## Changelog
@@ -133,6 +131,14 @@ 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]
#### Changed
- BREAKING: The `config` key has been replaced with a multiline string
- BREAKING: The chart now uses the `hostPathMounts` feature to mount the host paths
- The app version has been bumped to v1.20.7, this should allow better support of `/dev` subfolders.
### [3.3.2]
#### Added
@@ -161,6 +167,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[4.0.0]: #4.0.0
[3.3.2]: #3.3.2
[1.0.0]: #1.0.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,6 +9,14 @@ 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]
#### Changed
- BREAKING: The `config` key has been replaced with a multiline string
- BREAKING: The chart now uses the `hostPathMounts` feature to mount the host paths
- The app version has been bumped to v1.20.7, this should allow better support of `/dev` subfolders.
### [3.3.2]
#### Added
@@ -37,6 +45,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[4.0.0]: #4.0.0
[3.3.2]: #3.3.2
[1.0.0]: #1.0.0
{{- end -}}

View File

@@ -5,10 +5,10 @@
{{- define "custom.custom.configuration" -}}
{{ template "custom.custom.configuration.header" . }}
Please consider overriding the default configuration through `values.yaml` file.
For example:
Please consider overriding the default configuration through `values.yaml` file.
For example:
```yaml
config:
config: |
- devicematch: ^snd$
nummaxdevices: 20
- devicematch: ^rtc0$
@@ -18,7 +18,7 @@ config:
- devicematch: ^ttyACM[0-9]*$
nummaxdevices: 1
```
The above configuration allows up to twenty pods to make use of `/dev/snd`, `/dev/rtc0` and each of `/dev/video[0-9]*` devices.
The above configuration allows up to twenty pods to make use of `/dev/snd`, `/dev/rtc0` and each of `/dev/video[0-9]*` devices.
Only one pod at a time can use any of the discovered host `/dev/ttyACM[0-9]*` devices. This means that if a pod has reserved a dongle at `/dev/ttyACM0`, another pod requesting the same device will stay pending.
Once the devices are discovered, they will be added as allocatable resources to the nodes:
@@ -35,8 +35,6 @@ Capacity:
smarter-devices/ttyUSB-Z-Stick-Gen5: 1
```
Please note that only the root of the host `/dev` directory is considered for discovery. _Therefore, `by-id` paths will not work and some `udev` rules may be necessary._
The hardware is requested by pods through `resources`, e.g.:
```yaml
resources:

View File

@@ -1,36 +1,6 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* Host paths */}}
{{- define "sdm.dev.volume" -}}
name: host-dev
hostPath:
path: {{ .Values.devPath | default "/dev" }}
{{- end -}}
{{- define "sdm.sys.volume" -}}
name: host-sys
hostPath:
path: {{ .Values.sysPath | default "/sys" }}
{{- end -}}
{{- define "sdm.device-plugins.volume" -}}
name: host-device-plugins
hostPath:
path: {{ .Values.devicePluginPath | default "/var/lib/kubelet/device-plugins" }}
{{- end -}}
{{- define "sdm.dev.volumeMount" -}}
name: host-dev
mountPath: /dev
{{- end -}}
{{- define "sdm.sys.volumeMount" -}}
name: host-sys
mountPath: /sys
{{- end -}}
{{- define "sdm.device-plugins.volumeMount" -}}
name: host-device-plugins
mountPath: /var/lib/kubelet/device-plugins
{{- end -}}
{{/* Append host paths and the configMap to the additionalVolumes and additionalVolumeMounts */}}
{{- define "sdm.configmap.volume" -}}
name: configuration
@@ -39,12 +9,6 @@ configMap:
{{- end -}}
{{- $additionalVolumes := .Values.additionalVolumes -}}
{{- $volume := include "sdm.dev.volume" . | fromYaml -}}
{{- $additionalVolumes := append $additionalVolumes $volume -}}
{{- $volume := include "sdm.sys.volume" . | fromYaml -}}
{{- $additionalVolumes := append $additionalVolumes $volume -}}
{{- $volume := include "sdm.device-plugins.volume" . | fromYaml -}}
{{- $additionalVolumes := append $additionalVolumes $volume -}}
{{- $volume := include "sdm.configmap.volume" . | fromYaml -}}
{{- $additionalVolumes := append $additionalVolumes $volume -}}
{{- $_ := set .Values "additionalVolumes" (deepCopy $additionalVolumes) -}}
@@ -56,12 +20,6 @@ subPath: conf.yaml
{{- end -}}
{{- $additionalVolumeMounts := .Values.additionalVolumeMounts -}}
{{- $volumeMount := include "sdm.dev.volumeMount" . | fromYaml -}}
{{- $additionalVolumeMounts := append $additionalVolumeMounts $volumeMount -}}
{{- $volumeMount := include "sdm.sys.volumeMount" . | fromYaml -}}
{{- $additionalVolumeMounts := append $additionalVolumeMounts $volumeMount -}}
{{- $volumeMount := include "sdm.device-plugins.volumeMount" . | fromYaml -}}
{{- $additionalVolumeMounts := append $additionalVolumeMounts $volumeMount -}}
{{- $volumeMount := include "sdm.configmap.volumeMount" . | fromYaml -}}
{{- $additionalVolumeMounts := append $additionalVolumeMounts $volumeMount -}}
{{- $_ := set .Values "additionalVolumeMounts" (deepCopy $additionalVolumeMounts) -}}

View File

@@ -6,33 +6,4 @@ metadata:
{{- include "common.labels" . | nindent 4 }}
data:
conf.yaml: |
{{- if not .Values.config }}
- devicematch: ^snd$
nummaxdevices: 20
#- devicematch: ^gpiomem$
# nummaxdevices: 40
#- devicematch: ^gpiochip[0-9]*$
# nummaxdevices: 20
#- devicematch: ^hci[0-9]*$
# nummaxdevices: 1
#- devicematch: ^i2c-[0-9]*$
# nummaxdevices: 1
#- devicematch: ^rtc0$
# nummaxdevices: 20
#- devicematch: ^video[0-9]*$
# nummaxdevices: 20
#- devicematch: ^vchiq$
# nummaxdevices: 20
#- devicematch: ^vcsm.*$
# nummaxdevices: 20
- devicematch: ^ttyUSB.*$
nummaxdevices: 1
#- devicematch: ^ttyACM[0-9]*$
# nummaxdevices: 1
#- devicematch: ^ttyTHS[0-9]*$
# nummaxdevices: 1
#- devicematch: ^ttyS[0-9]*$
# nummaxdevices: 1
{{- else }}
{{- toYaml .Values.config | nindent 4 }}
{{- end }}
{{- .Values.config | nindent 4 }}

View File

@@ -6,28 +6,50 @@
#
image:
# -- Configure the image
repository: registry.gitlab.com/arm-research/smarter/smarter-device-manager
tag: v1.1.2
# -- Configure the image tag
tag: v1.20.7
# -- Configure the image pull policy
pullPolicy: IfNotPresent
# Override default configuration
# config:
# - devicematch: ^snd$
# nummaxdevices: 20
# - devicematch: ^ttyUSB.*$
# nummaxdevices: 1
# -- Override default configuration
# See [project repo](https://gitlab.com/arm-research/smarter/smarter-device-manager) for configuration examples
# @default -- Refer to values.yaml
config: |
- devicematch: ^ttyUSB.*$
nummaxdevices: 1
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
devicePluginPath: "/var/lib/kubelet/device-plugins"
# devPath: "/special-dev/"
# sysPath: "/special-sys/"
# -- Configures the host paths that are mapped through to the container
# @default -- Refer to values.yaml
hostPathMounts:
- name: "devfs"
enabled: true
emptyDir: false
mountPath: "/dev"
hostPath: "/dev"
readOnly: true
- name: "sysfs"
enabled: true
emptyDir: false
mountPath: "/sys"
hostPath: "/sys"
readOnly: true
- name: "kubeletsockets"
enabled: true
emptyDir: false
mountPath: "/var/lib/kubelet/device-plugins"
hostPath: "/var/lib/kubelet/device-plugins"
# Setting priority class is not necessary, but is recommended.
# Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
# -- Setting priority class is not necessary, but is recommended.
# [[Ref]](https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/)
priorityClassName: system-node-critical
# -- Configure the securityContext for this pod
# @default -- Refer to values.yaml
securityContext:
capabilities:
drop:

View File

@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: latest
description: An organizer for your porn, written in Go
name: stash
version: 1.3.0
version: 1.3.1
kubeVersion: ">=1.16.0-0"
keywords:
- porn

View File

@@ -1,4 +1,5 @@
env:
STASH_PORT: 9999
STASH_STASH: "/media"
STASH_GENERATED: "/root/.stash/generated"
STASH_METADATA: "/root/.stash/metadata"

View File

@@ -15,7 +15,8 @@ strategy:
# # See more environment variables in the stash documentation
# https://raw.githubusercontent.com/stashapp/stash/master/docker/production/docker-compose.yml
env: {}
env:
STASH_PORT: 9999
# STASH_STASH:
# STASH_GENERATED:
# STASH_METADATA: