2023-08-17 20:38:26 +00:00
|
|
|
---
|
|
|
|
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
|
2023-08-18 04:42:37 +00:00
|
|
|
command:
|
|
|
|
- /usr/sbin/asterisk
|
|
|
|
args:
|
|
|
|
- -TWBpvvvdddf
|
2023-08-17 20:38:26 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: config
|
|
|
|
mountPath: /etc/asterisk
|
2023-08-18 04:42:37 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8088
|
|
|
|
name: metrics
|
2023-08-17 20:38:26 +00:00
|
|
|
volumes:
|
|
|
|
- name: config
|
|
|
|
secret:
|
|
|
|
secretName: asterisk-secrets
|