charts/charts/stable/ser2sock/README.md
ᗪєνιη ᗷυнʟ 91aef6139f
[ser2sock] migrate to common library (#719)
* migrate ser2sock to common
2021-03-26 08:12:08 +01:00

165 lines
4.7 KiB
Markdown

# ser2sock
![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
Serial to Socket Redirector
**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/nutechsoftware/ser2sock>
* <https://github.com/tenstartups/ser2sock>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://library-charts.k8s-at-home.com | common | 2.0.1 |
## TL;DR
```console
helm repo add k8s-at-home https://k8s-at-home.com/charts/
helm repo update
helm install ser2sock k8s-at-home/ser2sock
```
## Installing the Chart
To install the chart with the release name `ser2sock`
```console
helm install ser2sock k8s-at-home/ser2sock
```
## Uninstalling the Chart
To uninstall the `ser2sock` deployment
```console
helm uninstall ser2sock
```
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 ser2sock \
--set env.TZ="America/New York" \
k8s-at-home/ser2sock
```
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
```console
helm install ser2sock k8s-at-home/ser2sock -f values.yaml
```
## Custom configuration
**IMPORTANT NOTE:** a ser2sock controller device must be accessible on the node where this pod runs, in order for this chart to function properly.
First, you will need to mount your ser2sock device into the pod, you can do so by adding the following to your values:
```yaml
additionalVolumeMounts:
- name: usb
mountPath: /path/to/device
additionalVolumes:
- name: usb
hostPath:
path: /path/to/device
```
Second you will need to set a nodeAffinity rule, for example:
```yaml
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: app
operator: In
values:
- ser2sock-controller
```
... where a node with an attached ser2sock controller USB device is labeled with `app: ser2sock-controller`
## 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 |
|-----|------|---------|-------------|
| additionalVolumeMounts | list | `[]` | |
| additionalVolumes | list | `[]` | |
| env.BAUD_RATE | int | `115200` | |
| env.LISTENER_PORT | int | `10000` | |
| env.SERIAL_DEVICE | string | `"/dev/ttyUSB0"` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"tenstartups/ser2sock"` | |
| image.tag | string | `"latest"` | |
| ingress.enabled | bool | `false` | |
| service.port.port | int | `10000` | |
| 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).
### [3.0.0]
#### Added
- N/A
#### Changed
- **BREAKING** Migrate ser2sock to the common library, Helm configuration values have changed.
#### Removed
- N/A
### [1.0.0]
#### Added
- N/A
#### Changed
- N/A
#### Removed
- N/A
[3.0.0]: #3.0.0
[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)