Skip to content

Instantly share code, notes, and snippets.

@mohclips
Created January 7, 2020 21:40
Show Gist options
  • Save mohclips/c5ce49c645a3cb5f5227dea608550121 to your computer and use it in GitHub Desktop.
Save mohclips/c5ce49c645a3cb5f5227dea608550121 to your computer and use it in GitHub Desktop.
k8s get-iplayer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: get-iplayer
spec:
selector:
matchLabels:
tier: media
replicas: 1
template:
metadata:
labels:
tier: media
spec:
containers:
- name: get-iplayer
# my host ip
image: 192.168.0.10:32000/get-iplayer
imagePullPolicy: IfNotPresent
ports:
- containerPort: 1935
hostPort: 1935
volumeMounts:
- mountPath: /output
name: output-volume
# local host storage
volumes:
- name: output-volume
hostPath:
# directory location on host - cifs to NAS
path: /mnt/NAS_Video
# this field is optional
type: Directory
# use our local DNS server
dnsPolicy: "None"
dnsConfig:
nameservers:
# home DNS server
- 192.168.0.2
searches:
- homenetwork.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment