initial commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-05-20 22:25:28 +02:00
commit 9fd976a298
26 changed files with 1050 additions and 0 deletions

15
k8s/configmap.yml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: input-service-config
labels:
app: input-service
namespace: birbnetes
data:
PORT: "8080"
DB_URL: "jdbc:postgresql://input-postgres:5432/input-service"
DB_USER: input-service
DB_PASSWORD: input-service-supersecret
MQ_HOST: birb-rabbitmq
MQ_USERNAME: user
MQ_PASSWORD: 1wZVQnP5vy

29
k8s/deployment.yml Normal file
View File

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

16
k8s/service.yml Normal file
View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: input-service
namespace: birbnetes
labels:
app: input-service
spec:
ports:
- name: input-service
port: 80
targetPort: 8080
protocol: TCP
selector:
app: input-service
type: ClusterIP