telephony-web: hostNetwork + node affinity with asterisk for ARI localhost access
This commit is contained in:
@@ -48,7 +48,7 @@ data:
|
|||||||
"StatusCallbackUrl": "https://telephony.flowercore.io/api/twilio/webhooks/voice/status"
|
"StatusCallbackUrl": "https://telephony.flowercore.io/api/twilio/webhooks/voice/status"
|
||||||
},
|
},
|
||||||
"Asterisk": {
|
"Asterisk": {
|
||||||
"BaseUrl": "http://asterisk-ari:8088",
|
"BaseUrl": "http://localhost:8088",
|
||||||
"Username": "flowercore",
|
"Username": "flowercore",
|
||||||
"Password": "bluejay-asterisk-ari",
|
"Password": "bluejay-asterisk-ari",
|
||||||
"Application": "flowercore-pbx",
|
"Application": "flowercore-pbx",
|
||||||
@@ -57,7 +57,7 @@ data:
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Ari": {
|
"Ari": {
|
||||||
"BaseUrl": "http://asterisk-ari:8088",
|
"BaseUrl": "http://localhost:8088",
|
||||||
"Username": "flowercore",
|
"Username": "flowercore",
|
||||||
"Password": "bluejay-asterisk-ari",
|
"Password": "bluejay-asterisk-ari",
|
||||||
"Application": "flowercore-pbx",
|
"Application": "flowercore-pbx",
|
||||||
@@ -121,6 +121,15 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: telephony-data
|
- name: telephony-data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
hostNetwork: true
|
||||||
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
|
affinity:
|
||||||
|
podAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: asterisk
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
containers:
|
containers:
|
||||||
- name: telephony-web
|
- name: telephony-web
|
||||||
image: localhost/fc-telephony-web:latest
|
image: localhost/fc-telephony-web:latest
|
||||||
@@ -337,3 +346,4 @@ spec:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user