4
0
Fork 0

added k8s stuff
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Pünkösd Marcell 2020-04-20 23:08:20 +02:00
parent 57a46dc259
commit 4381aaa6b2
3 changed files with 58 additions and 0 deletions

13
k8s/configmap.yaml Normal file
View 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
View 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
View 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