4
0

Added k8s stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2020-04-19 21:53:30 +02:00
parent 8180ec45d6
commit 432e9cc0f6
3 changed files with 50 additions and 0 deletions

12
k8s/configmap.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: model-service
labels:
app: model-service
namespace: birbnetes
data:
SENTRY_DSN: https://6d243347cf9f4fc6a54759c3eb34e864@sentry.kmlabz.com/8
RELEASE_ID: luna-k8s
RELEASEMODE: release
PIKA_URL: amqp://user:1wZVQnP5vy@birb-rabbitmq:5672/

27
k8s/deployment.yaml Normal file
View File

@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: extractor-service
namespace: birbnetes
labels:
app: extractor-service
spec:
replicas: 1
selector:
matchLabels:
app: extractor-service
strategy:
type: Recreate
template:
metadata:
labels:
app: extractor-service
spec:
containers:
- image: registry.kmlabz.com/tormakris/extractor-service
name: extractor-service
envFrom:
- configMapRef:
name: extractor-service
imagePullSecrets:
- name: regcred

11
k8s/service.yaml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: extractor-service
namespace: birbnetes
labels:
app: extractor-service
spec:
selector:
app: extractor-service
type: ClusterIP