gonic new chart (#509)

This commit is contained in:
ᗪєνιη ᗷυнʟ 2021-01-24 08:37:51 -05:00 committed by GitHub
parent bbaaeb619f
commit 5e4e7e8143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 161 additions and 0 deletions

24
charts/gonic/.helmignore Normal file
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/gonic/Chart.yaml Normal file
View File

@ -0,0 +1,20 @@
apiVersion: v2
appVersion: latest
description: Music streaming server / subsonic server API implementation
name: gonic
version: 1.0.0
keywords:
- music
- subsonic
home: https://github.com/k8s-at-home/charts/tree/master/charts/gonic
icon: https://raw.githubusercontent.com/sentriz/gonic/master/.github/logo.png
sources:
- https://github.com/sentriz/gonic
- https://hub.docker.com/r/sentriz/gonic
maintainers:
- name: billimek
email: jeff@billimek.com
dependencies:
- name: common
repository: https://k8s-at-home.com/charts/
version: 2.2.1

8
charts/gonic/OWNERS Normal file
View File

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

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

@ -0,0 +1,67 @@
# Gonic
This is a helm chart for [Gonic](https://github.com/sentriz/gonic).
**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/gonic
```
## Installing the Chart
To install the chart with the release name `my-release`:
```console
helm install --name my-release k8s-at-home/gonic
```
## 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/gonic/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 gonic \
--set env.TZ="America/New_York" \
k8s-at-home/gonic
```
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the
chart. For example,
```console
helm install gonic k8s-at-home/gonic --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" . }}

40
charts/gonic/values.yaml Normal file
View File

@ -0,0 +1,40 @@
# Default values for Gonic.
image:
repository: sentriz/gonic
pullPolicy: IfNotPresent
tag: latest
strategy:
type: Recreate
service:
port:
port: 80
# # See more environment variables in the gonic documentation
# https://github.com/sentriz/gonic#configuration-options
env: {}
# TZ: UTC
persistence:
data:
enabled: false
emptyDir: false
music:
enabled: false
emptyDir: false
mountPath: /music
## 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: 1Gi
## Do not delete the pvc upon helm uninstall
# skipuninstall: false
# existingClaim: ""