mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 07:59:02 +00:00
[traccar] new chart (#289)
This commit is contained in:
parent
f2336eedaa
commit
f0eb5542a4
24
charts/traccar/.helmignore
Normal file
24
charts/traccar/.helmignore
Normal 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
|
23
charts/traccar/Chart.yaml
Normal file
23
charts/traccar/Chart.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
appVersion: v4.11
|
||||||
|
description: Traccar is an open source GPS tracking system.
|
||||||
|
name: traccar
|
||||||
|
version: 1.0.0
|
||||||
|
keywords:
|
||||||
|
- traccar
|
||||||
|
- gps
|
||||||
|
home: https://github.com/k8s-at-home/charts/tree/master/charts/traccar
|
||||||
|
sources:
|
||||||
|
- https://github.com/traccar/traccar
|
||||||
|
- https://hub.docker.com/r/traccar/traccar
|
||||||
|
maintainers:
|
||||||
|
- name: billimek
|
||||||
|
email: jeff@billimek.com
|
||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
repository: https://k8s-at-home.com/charts/
|
||||||
|
version: 1.7.0
|
||||||
|
- name: mariadb
|
||||||
|
version: 9.0.1
|
||||||
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
condition: mariadb.enabled
|
8
charts/traccar/OWNERS
Normal file
8
charts/traccar/OWNERS
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
approvers:
|
||||||
|
- billimek
|
||||||
|
- onedr0p
|
||||||
|
- bjw-s
|
||||||
|
reviewers:
|
||||||
|
- billimek
|
||||||
|
- onedr0p
|
||||||
|
- bjw-s
|
67
charts/traccar/README.md
Normal file
67
charts/traccar/README.md
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# Traccar
|
||||||
|
|
||||||
|
This is a helm chart for [Traccar](https://github.com/traccar/traccar).
|
||||||
|
|
||||||
|
**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/traccar
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installing the Chart
|
||||||
|
|
||||||
|
To install the chart with the release name `my-release`:
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm install --name my-release k8s-at-home/traccar
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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/traccar/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 traccar \
|
||||||
|
--set env.TZ="America/New_York" \
|
||||||
|
k8s-at-home/traccar
|
||||||
|
```
|
||||||
|
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the
|
||||||
|
chart. For example,
|
||||||
|
```console
|
||||||
|
helm install traccar k8s-at-home/traccar --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.
|
2
charts/traccar/ci/ct-values.yaml
Normal file
2
charts/traccar/ci/ct-values.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ingress:
|
||||||
|
enabled: true
|
1
charts/traccar/templates/NOTES.txt
Normal file
1
charts/traccar/templates/NOTES.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{- include "common.notes.defaultNotes" . -}}
|
1
charts/traccar/templates/common.yaml
Normal file
1
charts/traccar/templates/common.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ include "common.all" . }}
|
43
charts/traccar/values.yaml
Normal file
43
charts/traccar/values.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# Default values for Ombi.
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: traccar/traccar
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: 4.11
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
|
||||||
|
service:
|
||||||
|
port:
|
||||||
|
port: 8082
|
||||||
|
|
||||||
|
# See more environment varaibles in the traccar documentation
|
||||||
|
# https://www.traccar.org/configuration-file/
|
||||||
|
# Note: replace . with _ and uppercase the key name
|
||||||
|
env:
|
||||||
|
CONFIG_USE_ENVIRONMENT_VARIABLES: true
|
||||||
|
LOGGER_CONSOLE: true
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
data:
|
||||||
|
enabled: false
|
||||||
|
emptyDir: false
|
||||||
|
mountPath: /opt/traccar/data
|
||||||
|
|
||||||
|
probes:
|
||||||
|
startup:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# Enabled mariadb
|
||||||
|
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/mariadb
|
||||||
|
mariadb:
|
||||||
|
enabled: false
|
||||||
|
architecture: standalone
|
||||||
|
auth:
|
||||||
|
database: traccar
|
||||||
|
username: traccar
|
||||||
|
password: traccar
|
||||||
|
primary:
|
||||||
|
persistence:
|
||||||
|
enabled: false
|
Loading…
Reference in New Issue
Block a user