Migrate Asterisk
This commit is contained in:
		
							
								
								
									
										1
									
								
								asterisk/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								asterisk/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
conf
 | 
			
		||||
							
								
								
									
										43
									
								
								asterisk/application.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								asterisk/application.yml
									
									
									
									
									
										Normal 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
 | 
			
		||||
		Reference in New Issue
	
	Block a user