diff --git a/apps/asterisk/service.yaml b/apps/asterisk/service.yaml index 7de3538..87dd9f2 100644 --- a/apps/asterisk/service.yaml +++ b/apps/asterisk/service.yaml @@ -1,40 +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 +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: Cluster + 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