Created
September 14, 2019 22:33
-
-
Save SeanHood/f9821aa68ecf2f26bb651e4ece6e32f4 to your computer and use it in GitHub Desktop.
TV Mosaic in K3s with a side of FluxCD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: tvmosaic | |
namespace: dvb | |
labels: | |
app: tvmosaic | |
annotations: | |
flux.weave.works/automated: "true" | |
flux.weave.works/tag.tvmosaic: semver:~1.0 | |
spec: | |
strategy: | |
rollingUpdate: | |
maxUnavailable: 0 | |
type: RollingUpdate | |
selector: | |
matchLabels: | |
app: tvmosaic | |
revisionHistoryLimit: 2 | |
template: | |
metadata: | |
labels: | |
app: tvmosaic | |
spec: | |
containers: | |
- name: tvmosaic | |
image: dvblogic/tvmosaic:1.0.0.17707 | |
imagePullPolicy: Always | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: /dev/bus/usb | |
name: devbususb | |
- mountPath: /opt/TVMosaic | |
name: tvmosaic-data | |
ports: | |
- containerPort: 9270 | |
name: http-command | |
protocol: TCP | |
- containerPort: 9271 | |
name: http-stream | |
protocol: TCP | |
livenessProbe: | |
httpGet: | |
path: /web | |
port: 9270 | |
readinessProbe: | |
httpGet: | |
path: /web | |
port: 9270 | |
resources: | |
limits: | |
cpu: 1000m | |
memory: 512Mi | |
requests: | |
cpu: 10m | |
memory: 128Mi | |
volumes: | |
- name: devbususb | |
hostPath: | |
path: /dev/bus/usb | |
- name: tvmosaic-data | |
hostPath: | |
path: /data/tvmosaic | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: tvmosaic-stream | |
namespace: dvb | |
labels: | |
app: tvmosaic | |
spec: | |
type: LoadBalancer | |
selector: | |
app: tvmosaic | |
ports: | |
- name: http-stream | |
port: 9271 | |
protocol: TCP | |
- name: http-command | |
port: 9270 | |
protocol: TCP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment