45 lines
722 B
YAML
45 lines
722 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: my-deployment
|
||
|
spec:
|
||
|
replicas: 2
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: my-app
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: my-app
|
||
|
env: prod
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: my-deployment-container
|
||
|
image: git.oe74.net/adelorenzo/rtmp-adr:0.6
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: example-prod
|
||
|
spec:
|
||
|
selector:
|
||
|
app: my-app
|
||
|
env: prod
|
||
|
type: NodePort
|
||
|
ports:
|
||
|
- name: http
|
||
|
protocol: TCP
|
||
|
port: 80
|
||
|
targetPort: 80
|
||
|
nodePort: 30080
|
||
|
- name: hls
|
||
|
protocol: TCP
|
||
|
port: 8080
|
||
|
targetPort: 8080
|
||
|
nodePort: 31080
|
||
|
# - protocol: TCP
|
||
|
# port: 1935
|
||
|
# targetPort: 1935
|
||
|
# nodePort: 31935
|