From 1361c9ec22436f66846ad84e0d92cba1cdcf4f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 17 Aug 2023 23:38:26 +0300 Subject: [PATCH] Migrate Asterisk --- asterisk/.gitignore | 1 + asterisk/application.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 asterisk/.gitignore create mode 100644 asterisk/application.yml diff --git a/asterisk/.gitignore b/asterisk/.gitignore new file mode 100644 index 0000000..32814ee --- /dev/null +++ b/asterisk/.gitignore @@ -0,0 +1 @@ +conf diff --git a/asterisk/application.yml b/asterisk/application.yml new file mode 100644 index 0000000..14de5d2 --- /dev/null +++ b/asterisk/application.yml @@ -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