2023-01-20 23:44:33 +00:00
|
|
|
apiVersion: apps/v1
|
2023-01-20 23:40:33 +00:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2023-01-20 23:57:13 +00:00
|
|
|
name: rtmp-adr-deployment
|
2023-01-20 23:53:56 +00:00
|
|
|
labels:
|
|
|
|
app: rtmp-adr
|
2023-01-20 23:40:33 +00:00
|
|
|
spec:
|
2023-01-20 23:57:13 +00:00
|
|
|
replicas: 1
|
2023-01-20 23:53:56 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: rtmp-adr
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: rtmp-adr
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: rtmp-adr
|
|
|
|
image: git.oe74.net/adelorenzo/rtmp-adr:0.6
|
|
|
|
imagePullPolicy: IfNotPresent
|
2023-01-20 23:59:51 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: rtmp-adr-svc
|
|
|
|
spec:
|
|
|
|
type: NodePort
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: rtmp-adr
|
|
|
|
ports:
|
|
|
|
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
|
|
|
|
- port: 8080
|
|
|
|
targetPort: 8080
|
|
|
|
# Optional field
|
|
|
|
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
|
|
|
|
nodePort: 30080
|