Skip to content

Commit

Permalink
Fix urls in kubernetes docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nvtkaszpir committed Jul 12, 2024
1 parent 97d6972 commit 92a8688
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/service.kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,27 @@ Yes, because why not, especially if you run k3s :D

This is just an example but you should be able to adjust it to your needs.

See [directory](https://github.com/nvtkaszpir/prusa-connect-camera-script/tree/master/k8s)
for the content you can use with a [kustomize](https://kustomize.io/).

## Overview

- each camera should be a separate kubernetes deployment, easier to manage.

- in `configs` there is a one file with env vars loaded per deployment,
- in [configs](https://github.com/nvtkaszpir/prusa-connect-camera-script/tree/master/k8s/configs)
there is a one file with env vars loaded per deployment,
those env vars **MUST BE** changed as in env vars
Also do not use double quotes the values.

- deployment possible using for example kustomize

## Examples

- [deployment-1.yaml](https://github.com/nvtkaszpir/prusa-connect-camera-script/k8s/deployment-1.yaml)
- [deployment-1.yaml](https://github.com/nvtkaszpir/prusa-connect-camera-script/blob/master/k8s/deployment-1.yaml)
is an example to fetch image from a stream using ffmpeg and with custom
prusa-connect-camera.sh for easier development/iteration

- [deployment-2.yaml](https://github.com/nvtkaszpir/prusa-connect-camera-script/k8s/deployment-2.yaml)
- [deployment-2.yaml](https://github.com/nvtkaszpir/prusa-connect-camera-script/blob/master/k8s/deployment-2.yaml)
is an example how to run it on Raspberry Pi with USB camera using default parameters.
You want to change `.spec.nodeName` and volumes to point to desired camera.

Expand Down

0 comments on commit 92a8688

Please sign in to comment.