first commit
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-08-11 14:40:05 +02:00
commit 26acf2085c
27 changed files with 926 additions and 0 deletions

15
k8s/configmap.yml Normal file
View File

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

30
k8s/deployment.yml Normal file
View File

@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: output-service-rdb
namespace: birbnetes
labels:
app: output-service-rdb
spec:
replicas: 1
selector:
matchLabels:
app: output-service-rdb
strategy:
type: Recreate
template:
metadata:
labels:
app: output-service-rdb
spec:
containers:
- image: registry.kmlabz.com/birbnetes/output-service-rdb
imagePullPolicy: Always
name: output-service-rdb
envFrom:
- configMapRef:
name: output-service-rdb-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: output-service-rdb
namespace: birbnetes
labels:
app: output-service-rdb
spec:
ports:
- name: output-service-rdb
port: 80
targetPort: 8080
protocol: TCP
selector:
app: output-service-rdb
type: ClusterIP