From f07c79fc4c466c331a70a1f71adfa1e48008bbe7 Mon Sep 17 00:00:00 2001 From: bluejay Date: Sun, 15 Mar 2026 18:55:36 +0000 Subject: [PATCH] telephony-web: hostNetwork + node affinity with asterisk for ARI localhost access --- apps/telephony/telephony.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/telephony/telephony.yaml b/apps/telephony/telephony.yaml index 9c3c7ab..45a3c51 100644 --- a/apps/telephony/telephony.yaml +++ b/apps/telephony/telephony.yaml @@ -48,7 +48,7 @@ data: "StatusCallbackUrl": "https://telephony.flowercore.io/api/twilio/webhooks/voice/status" }, "Asterisk": { - "BaseUrl": "http://asterisk-ari:8088", + "BaseUrl": "http://localhost:8088", "Username": "flowercore", "Password": "bluejay-asterisk-ari", "Application": "flowercore-pbx", @@ -57,7 +57,7 @@ data: } }, "Ari": { - "BaseUrl": "http://asterisk-ari:8088", + "BaseUrl": "http://localhost:8088", "Username": "flowercore", "Password": "bluejay-asterisk-ari", "Application": "flowercore-pbx", @@ -121,6 +121,15 @@ spec: volumeMounts: - name: telephony-data mountPath: /data + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet + affinity: + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app: asterisk + topologyKey: kubernetes.io/hostname containers: - name: telephony-web image: localhost/fc-telephony-web:latest @@ -337,3 +346,4 @@ spec: +