ser2sock

by funkypenguin

Helm chartv5.4.2App 1.0.0Verified publisher

Serial to Socket Redirector

About this chart

ser2sock

Serial to Socket Redirector

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Source Code

Requirements

Kubernetes: >=1.16.0-0

Dependencies

RepositoryNameVersion
https://library-charts.k8s-at-home.comcommon4.5.2

TL;DR

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

helm install ser2sock k8s-at-home/ser2sock

Uninstalling the Chart

To uninstall the ser2sock deployment

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 file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

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.

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. Be sure to modify the values according to your requirements!

persistence:
  usb:
    enabled: true
    type: hostPath
    mountPath: /dev/ttyUSB0  # This is an optional field, and defaults to the value of `hostPath`
    hostPath: /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_DO00DPTS-if00-port0
    # hostPathType: CharDevice

Second you will need to set a nodeAffinity rule, for example:

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

KeyTypeDefaultDescription
affinityobject{}Affinity constraint rules to place the Pod on a specific node. [ref]
envobjectSee belowenvironment variables. See image docs for more details.
env.BAUD_RATEint115200Serial device baud rate
env.LISTENER_PORTstring"{{ .Values.service.main.ports.server.port }}"Port where ser2sock listens
env.SERIAL_DEVICEstring"{{ .Values.persistence.usb.mountPath }}"Path to the serial device
env.TZstring"UTC"Set the container timezone
image.pullPolicystring"Always"image pull policy
image.repositorystring"tenstartups/ser2sock"image repository
image.tagstring"latest"image tag
ingress.mainobjectSee values.yamlEnable and configure ingress settings for the chart under this key.
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
persistence.usbobjectSee values.yamlConfigure a hostPathMount to mount a USB device in the container.
securityContext.privilegedboolnilPrivileged securityContext may be required if USB controller is accessed directly through the host machine
serviceobjectSee values.yamlConfigures service settings for the chart.

Changelog

Version 5.4.2

Added

N/A

Changed

  • Upgraded common chart dependency to version 4.5.2

Fixed

N/A

Older versions

A historical overview of changes can be found on ArtifactHUB

Support


Autogenerated from chart metadata using helm-docs v0.1.1

Deploy ser2sock with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ser2sock on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartser2sock is pinned at v5.4.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply