diff --git a/apps/asterisk/service.yaml b/apps/asterisk/service.yaml new file mode 100644 index 0000000..7de3538 --- /dev/null +++ b/apps/asterisk/service.yaml @@ -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