Add Asterisk PBX Services (SIP LoadBalancer + ARI ClusterIP)
This commit is contained in:
40
apps/asterisk/service.yaml
Normal file
40
apps/asterisk/service.yaml
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: asterisk-sip
|
||||||
|
namespace: telephony
|
||||||
|
labels:
|
||||||
|
app: asterisk
|
||||||
|
annotations:
|
||||||
|
metallb.universe.tf/loadBalancerIPs: "10.0.56.207"
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
externalTrafficPolicy: Local
|
||||||
|
selector:
|
||||||
|
app: asterisk
|
||||||
|
ports:
|
||||||
|
- name: sip-udp
|
||||||
|
port: 5060
|
||||||
|
targetPort: 5060
|
||||||
|
protocol: UDP
|
||||||
|
- name: sip-tcp
|
||||||
|
port: 5060
|
||||||
|
targetPort: 5060
|
||||||
|
protocol: TCP
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: asterisk-ari
|
||||||
|
namespace: telephony
|
||||||
|
labels:
|
||||||
|
app: asterisk
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: asterisk
|
||||||
|
ports:
|
||||||
|
- name: ari
|
||||||
|
port: 8088
|
||||||
|
targetPort: 8088
|
||||||
|
protocol: TCP
|
||||||
Reference in New Issue
Block a user