Skip to content

Instantly share code, notes, and snippets.

@iameli
Created January 19, 2024 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iameli/3dfadb197795929ca86379949a8a64d6 to your computer and use it in GitHub Desktop.
Save iameli/3dfadb197795929ca86379949a8a64d6 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: catalyst
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: catalyst
template:
metadata:
labels:
app: catalyst
spec:
terminationGracePeriodSeconds: 10
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- cranston
volumes:
- name: catalyst
hostPath:
path: /data/catalyst
- name: dshm
emptyDir:
medium: Memory
containers:
- name: catalyst
env:
- name: CATALYST_PUBLIC_URL
value: https://catalyst.iame.li
- name: CATALYST_SECRET
valueFrom:
secretKeyRef:
name: catalyst-secret
key: catalyst-secret
ports:
- containerPort: 1935
name: rtmp
protocol: TCP
hostIP: "169.197.143.39"
hostPort: 1935
image: livepeer/catalyst:eli-config-generation-final-amd64
imagePullPolicy: Always
volumeMounts:
- mountPath: /dev/shm
name: dshm
- name: catalyst
mountPath: /data
---
apiVersion: v1
kind: Service
metadata:
name: catalyst
labels:
app: catalyst
spec:
type: ClusterIP
ports:
- port: 8888
targetPort: 8888
protocol: TCP
name: http
selector:
app: catalyst
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: catalyst
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- catalyst.iame.li
secretName: iame.li
rules:
- host: "catalyst.iame.li"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: catalyst
port:
number: 8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment