added k8s stuff
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
57a46dc259
commit
4381aaa6b2
|
@ -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
|
|
@ -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
|
|
@ -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