Added all files
This commit is contained in:
28
deployment.yaml
Normal file
28
deployment.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: webrtc-signal
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels: { app: webrtc-signal }
|
||||
template:
|
||||
metadata:
|
||||
labels: { app: webrtc-signal }
|
||||
spec:
|
||||
containers:
|
||||
- name: server
|
||||
image: yourrepo/webrtc-signal:1.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: webrtc-signal
|
||||
spec:
|
||||
type: NodePort # or LoadBalancer if you have MetalLB
|
||||
selector: { app: webrtc-signal }
|
||||
ports:
|
||||
- port: 8080 # cluster‑internal
|
||||
targetPort: 8080 # container
|
||||
Reference in New Issue
Block a user