This commit is contained in:
		
							
								
								
									
										13
									
								
								k8s/configmap.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								k8s/configmap.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: ConfigMap
 | 
			
		||||
metadata:
 | 
			
		||||
  name: classification-service
 | 
			
		||||
  labels:
 | 
			
		||||
    app: classification-service
 | 
			
		||||
  namespace: birbnetes
 | 
			
		||||
data:
 | 
			
		||||
  SENTRY_DSN: https://c4141698a2be4919a5c04c5b00cb7c34@sentry.kmlabz.com/5
 | 
			
		||||
  RELEASE_ID: luna-k8s
 | 
			
		||||
  RELEASEMODE: release
 | 
			
		||||
  PIKA_URL: amqp://user:1wZVQnP5vy@birb-rabbitmq:5672/
 | 
			
		||||
  PIKA_EXCHANGE: output
 | 
			
		||||
							
								
								
									
										29
									
								
								k8s/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								k8s/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
apiVersion: apps/v1
 | 
			
		||||
kind: Deployment
 | 
			
		||||
metadata:
 | 
			
		||||
  name: classification-service
 | 
			
		||||
  namespace: birbnetes
 | 
			
		||||
  labels:
 | 
			
		||||
    app: classification-service
 | 
			
		||||
spec:
 | 
			
		||||
  replicas: 1
 | 
			
		||||
  selector:
 | 
			
		||||
    matchLabels:
 | 
			
		||||
      app: classification-service
 | 
			
		||||
  strategy:
 | 
			
		||||
    type: Recreate
 | 
			
		||||
  template:
 | 
			
		||||
    metadata:
 | 
			
		||||
      labels:
 | 
			
		||||
        app: classification-service
 | 
			
		||||
    spec:
 | 
			
		||||
      containers:
 | 
			
		||||
      - image: registry.kmlabz.com/tormakris/classification-service
 | 
			
		||||
        name: classification-service
 | 
			
		||||
        envFrom:
 | 
			
		||||
          - configMapRef:
 | 
			
		||||
              name: classification-service
 | 
			
		||||
        ports:
 | 
			
		||||
        - containerPort: 8000
 | 
			
		||||
      imagePullSecrets:
 | 
			
		||||
      - name: regcred
 | 
			
		||||
							
								
								
									
										16
									
								
								k8s/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								k8s/service.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Service
 | 
			
		||||
metadata:
 | 
			
		||||
  name: classification-service
 | 
			
		||||
  namespace: birbnetes
 | 
			
		||||
  labels:
 | 
			
		||||
    app: classification-service
 | 
			
		||||
spec:
 | 
			
		||||
  ports:
 | 
			
		||||
  - name: classification-service
 | 
			
		||||
    port: 80
 | 
			
		||||
    targetPort: 8000
 | 
			
		||||
    protocol: TCP
 | 
			
		||||
  selector:
 | 
			
		||||
    app: classification-service
 | 
			
		||||
  type: ClusterIP
 | 
			
		||||
		Reference in New Issue
	
	Block a user