k8s

command module
v1.1.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 22 Imported by: 0

README

GitHub go.mod Go version Actions Status

HomeDashboard Rendering Server for SyncSign® eInk Displays

Provides a server wich listens for refresh requests send by SyncSign® eInk displays.

K8s Deployment

apiVersion: v1
kind: Namespace
metadata:
  name: hdb
  labels:
    name: hdb

---

kind: Deployment
apiVersion: apps/v1
metadata:
  name: hdb-renderer-syncsign
  namespace: hdb
  labels:
    app: hdb-renderer-syncsign
spec:
  replicas: 3
  selector:
    matchLabels:
      app: hdb-renderer-syncsign
  template:
    metadata:
      labels:
        app: hdb-renderer-syncsign
    spec:
      containers:
        - name: hdb-renderer-syncsign
          image: ghcr.io/tommzn/hdb-renderer-syncsign/arm64:latest
          volumeMounts:
            - name: secret-volume
              mountPath: /run/secrets/token
              readOnly: true
          imagePullPolicy: Always

---

kind: Service
apiVersion: v1
metadata:
  name: hdb-datasource-indoorclimate
spec:
  selector:
    app: hdb-datasource-indoorclimate
  ports:
    - port: 8080

Endpoints

As describes in SyncSign render docs this server provides two endpoints.

Node

Path: /renders/nodes/{nodeid} Endpoint display will call to get updated content. Server will start rendering for passed node id (=display id) and return new content as JSON. Errors will be renderer as JSON as well and status code will always be 200 OK.

Render

Path: /renders/{renderid} Request to this endpoint will always be answered with a 204 status code.

Health Check

Path: /health If desired you can observe server health status with this endpoint.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL