Migrate Asterisk

This commit is contained in:
Lauri Võsandi 2023-08-17 23:38:26 +03:00
parent c8a7aecc2f
commit 1361c9ec22
2 changed files with 44 additions and 0 deletions

1
asterisk/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
conf

43
asterisk/application.yml Normal file
View File

@ -0,0 +1,43 @@
---
apiVersion: v1
kind: Service
metadata:
name: asterisk
annotations:
external-dns.alpha.kubernetes.io/hostname: voip.k-space.ee
spec:
type: LoadBalancer
externalTrafficPolicy: Local
selector:
app: asterisk
ports:
- name: sip
protocol: UDP
port: 5060
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: asterisk
labels:
app: asterisk
spec:
selector:
matchLabels:
app: asterisk
replicas: 1
template:
metadata:
labels:
app: asterisk
spec:
containers:
- name: asterisk
image: harbor.k-space.ee/k-space/asterisk
volumeMounts:
- name: config
mountPath: /etc/asterisk
volumes:
- name: config
secret:
secretName: asterisk-secrets